Categories

Apr 9 in C Sharp (C#)
Q:

Explain Reflection in C#.

1 Answer

Apr 9

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
Click here to read more about C Sharp
Click here to read more about Insurance

Related questions

Madanswer
Jun 16 in C Sharp (C#)
Jun 16 in C Sharp (C#)
Jun 16 in C Sharp (C#)
...