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, Object[])

LocationInfo.SetValue Method (Object, Object, Object[])

Sets the value of the field or property represented by the current object to a given value with optional index values for indexed properties.

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,
	Object[] index
)

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.
index
Type: System.Object[]
Optional index values for indexed properties. null for fields or non-index properties.
See Also