in C Sharp by

Explain Reflection in C#.

▼ Show 1 Answer

0 votes

The ability of code to access the metadata of the assembly during runtime is called Reflection. A program reflects upon itself and uses the metadata to:

  • Inform the user, or
  • Modify the behavior

The system contains all classes and methods that manage the information of all the loaded types and methods. Reflection namespace. Implementation of reflection is in 2 steps:

  • Get the type of the object, then
  • Use the type to identify members, such as properties and methods
Learn More with Madanswer

Related questions

0 votes
asked Jun 16, 2020 in C Sharp by Hodge