Export (0) Print
Expand All

FieldBuilder Methods

The methods of the FieldBuilder class are listed here. For a complete list of FieldBuilder class members, see the FieldBuilder Members topic.

Public Methods

public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetCustomAttributes Overloaded. Overridden. Returns the custom attributes defined for this field.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetToken Returns the token representing this field.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodGetValue Overridden. Retrieves the value of the field supported by the given object.
public methodGetValueDirect (inherited from FieldInfo) Returns the value of a field supported by a given object.
public methodIsDefined Overridden. Indicates whether an attribute having the specified type is defined on a field.
public methodSetConstant Sets the default value of this field.
public methodSetCustomAttribute Overloaded. Sets a custom attribute.
public methodSetMarshal Describes the native marshaling of the field.
public methodSetOffset Specifies the field layout.
public methodSetValue Overloaded.
public methodSetValueDirect (inherited from FieldInfo) Sets the value of the field supported by the given object.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

FieldBuilder Class | System.Reflection.Emit Namespace

Show:
© 2014 Microsoft