reflection:

What is reflection: reflecting providing an object (described assemblies, modules and types of Type  type). Can be created dynamically using the reflection type of instance, bind to an existing object type, or acquired from an existing object type, and then call its methods or access its fields and properties. If the characteristics of the code used, the reflection can be used to access them. For more information, see characteristics .

Why reflection:

How to use reflection:

GetType () : Gets the current instance of the  Type .

The typeof operator : means for acquiring a type of  System.Type  instance

Guess you like

Origin www.cnblogs.com/qingyunye/p/12363347.html