System.Reflection.FieldInfo: Method Members

The methods of System.Reflection.FieldInfo are listed below. For a list of all members, see the FieldInfo Members list.

See Also: Inherited members from System.Reflection.MemberInfo

Public Methods

override
Equals(object) : bool

Returns a value that indicates whether this instance is equal to a specified object.

static
GetFieldFromHandle(RuntimeFieldHandle) : FieldInfo

Gets a System.Reflection.FieldInfo for the field represented by the specified handle.

static
GetFieldFromHandle(RuntimeFieldHandle, RuntimeTypeHandle) : FieldInfo

Gets a System.Reflection.FieldInfo for the field represented by the specified handle, for the specified generic type.

override
GetHashCode() : int

Returns the hash code for this instance.

GetOptionalCustomModifiers() : Type[]

Gets an array of types that identify the optional custom modifiers of the field.

GetRawConstantValue() : object

Returns a literal value associated with the field by a compiler.

GetRequiredCustomModifiers() : Type[]

Gets an array of types that identify the required custom modifiers of the property.

GetType() : Type
Documentation for this section has not yet been entered.
abstract
GetValue(object) : object

When overridden in a derived class, returns the value of a field supported by a given object.

GetValueDirect(TypedReference) : object

Returns the value of a field supported by a given object.

SetValue(object, object)

Sets the value of the field supported by the given object.

abstract
SetValue(object, object, BindingFlags, Binder, System.Globalization.CultureInfo)

When overridden in a derived class, sets the value of the field supported by the given object.

SetValueDirect(TypedReference, object)

Sets the value of the field supported by the given object.