Giter Site home page Giter Site logo

Comments (3)

Eilon avatar Eilon commented on September 17, 2024

Examples where this is problematic right now:

  1. BWFC DataBinder uses Reflection: https://github.com/FritzAndFriends/BlazorWebFormsComponents/blob/dev/src/BlazorWebFormsComponents/DataBinder.cs#L89-L90
  2. BWFC uses Reflection.Emit to mimic much of what ICustomTypeDescriptor does: https://github.com/FritzAndFriends/BlazorWebFormsComponents/blob/d1b9dfecd4ae335458ca0b42f7c0b88162aa8a4a/src/BlazorWebFormsComponents/Extensions/DataTableExtensions.cs
    • But if it used TypeDescriptor, this shouldn't be necessary.
  3. BWFC GridView generates columns with Reflection:
    var propertiesInfo = type.GetProperties(BindingFlags.Instance | BindingFlags.Public);
    • Web Forms GridView (very indirectly) goes through TypeDescriptor

from blazorwebformscomponents.

Eilon avatar Eilon commented on September 17, 2024

I already have a work in progress on this that I can share soon. I think it simplifies much code.

from blazorwebformscomponents.

Eilon avatar Eilon commented on September 17, 2024

This also avoids the design-time compiler error The typeof operator cannot be used on the dynamic type:

image

Because now you use ItemType="object" instead of ItemType="dynamic".

from blazorwebformscomponents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.