FieldInfo.SetValue Method
Sets the value of a field supported by a specified object.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
[DebuggerHiddenAttribute]
[DebuggerStepThroughAttribute]
[MethodImplAttribute]
public virtual void SetValue (
Object obj,
Object value
)
Parameters
- obj
The object whose field value will be set. - value
The value to be assigned to the field.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.
See Also
Reference
FieldInfo Class
FieldInfo Members
System.Reflection Namespace