PostSharp6.2/API Reference/Post­Sharp.​Reflection Namespace/Location­Info Class/Location­Info Methods/Location­Info.​Set­Value Method/Location­Info.​Set­Value Method (Object, Object)

LocationInfo.SetValue Method (Object, Object)

Sets the value of the field or property represented by the current object to a given value.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.2.11.0 (6.2.11.0)
Syntax
C#
public void SetValue(
	Object instance,
	Object value
)

Parameters

instance
Type: System.Object
The object whose field or property value will be changed (null if the field or property is static).
value
Type: System.Object
New value.
See Also