I went to all the positions but my question could not be answered.
What
Please explain with an example.
It should be said that. NET reflection is not revolutionary - concepts have been around other settings.
In .net there are 2 aspects in the image:
Check the type of information
Reflection / introspection of any type of API Instead of doing things like serialization, it becomes very difficult to do instead, instead of providing the runtime (inspection of properties / fields / etc.), you need a code-generation instead, that is the code which clearly knows That sort your every sort Ase If you have something to serial things like that difficult, painful and traumatic.
Similarly, there is nowhere to store additional metadata about properties etc., so you have a lot of additional code, or external configuration files, through a property (through an attribute) a friendly Being able to associate the name is a big win for the simple UI code.
Metaprogramming
Provides a mechanism to make type (etc) on the net reflection respectively, which is extremely powerful for certain specific scenarios; Options are:
- Running a parser / logic paste at runtime (instead of compiling logic in executable code on runtime) - Very slow
- So far more code generation - Yay!
Comments
Post a Comment