共用方式為


Using Reflection Emit 

This section provides a description of the fundamental tasks that you can accomplish using reflection emit. The following notes apply to the task descriptions.

  • The MethodAttributes.SpecialName attribute applies to types (specified using the TypeAttributes enumeration), methods (specified using the MethodAttributes enumeration), fields (specified using the FieldAttributes enumeration), properties (specified using the PropertyAttributes enumeration), and events (specified using the EventAttributes enumeration).

  • The MethodAttributes.SpecialName attribute is used to specify that the name is special to compilers, tools, and so on. The common language runtime does not check this attribute.

  • The MethodAttributes.RTSpecialName attribute is reserved for use by the runtime only.

In This Section