What is reflection?
Reflection provides objects (type types) that encapsulate assemblies, modules, and types. You can use reflection to dynamically create instances of types. Binds a type to an object in Xi ' an.
Or get the type from an existing object and call its methods or access fields. If your code uses attributes, you can also use reflection to access them.
as a general rule, it is a way to understand the inside of an object.
Code 1 shows the use of the GetType () method to obtain object type information.
int i =; System.Type Type = I.gettype (); System.Console.WriteLine (type);
//Code 2 shows a way to get information about a dynamic-link library
System.Reflection.Assembly o = System.Reflection.Assembly.Load ("mscorlib.dll"); System.Console.WriteLine (O.getname ());
http://blog.csdn.net/ilipan/article/details/45486143
C # Reflection