Share via


FieldInfo.GetValue Method

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

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

Syntax

[DebuggerStepThroughAttribute]
[DebuggerHiddenAttribute]
public virtual abstract Object GetValue (
         Objectobj
)

Parameters

  • obj
    The object whose field value will be returned.

Return Value

An object that contains the value of the field reflected by the current FieldInfo object.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

FieldInfo Class
FieldInfo Members
System.Reflection Namespace