1.

State the uses of Reflection in C#

Answer»

Reflection is the process of describing the metadata of types, methods, and fields in a code.

Some of the major use of Reflection in C#:


  • Load assemblies at the given runtime

  • Help to learn about the definition of entities like class, or enumeration by groups

  • Get to know about fields, properties, constructors, events, and methods in a Class

  • Helps to learn about the properties of entities such as their types, read-only status, etc.

  • Helps in getting and setting a property’s value

  • Helps to learn about an entity’s attributes.




Discussion

No Comment Found