System.Reflection.Emit.TypeBuilder.DefineField Method

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

Syntax

public FieldBuilder DefineField (string fieldName, Type type, System.Reflection.FieldAttributes attributes)

Parameters

fieldName
The name of the field. fieldName cannot contain embedded nulls.
type
The type of the field
attributes
The attributes of the field.

Returns

The defined field.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0