TypeBuilder.DefineField Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds a new field to the dynamic type.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodDefineField(String, Type, FieldAttributes)

Adds a new field to the type, with the given name, attributes, and field type.

System_CAPS_pubmethodDefineField(String, Type, Type[], Type[], FieldAttributes)

Adds a new field to the type, with the given name, attributes, field type, and custom modifiers.

Return to top
Show: