TypeBuilder::DefineField Method

 

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^, array<Type^>^, array<Type^>^, FieldAttributes)

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

Return to top
Show: