Google News
logo
C# - Interview Questions
What is Reflection in C#?
Reflection in C# extracts metadata from the datatypes during runtime. 
 
To add reflection in the .NET framework, simply use System.Refelction namespace in your program to retrieve the type which can be anything from:
 
* Assembly
* Module
* Enum
* MethodInfo
* ConstructorInfo
* MemberInfo
* ParameterInfo
* Type
* FieldInfo
* EventInfo
* PropertyInfo
Advertisement