[C #] foundation reflection, metadata and dynamic programming

A: checking code and dynamic programming during operation

Introduction custom properties, reflection and dynamic programming. Custom properties allows custom metadata associated with a program element.

These elements are created in the office during compilation, and embedded in the assembly.

Reflection is a general term that describes the function and processing during operation checking program element.

Reflection allows it to complete the task

1): members of the enumerated type

2): instantiating a new object --CreateInstance ()

3): members of the object

4): Find the type of information

5): Finding information for an assembly

6): Check applied to certain types of custom attributes

7): Create and compile new assemblies.

 

Guess you like

Origin www.cnblogs.com/SignX/p/11569837.html