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

LocationInfo.GetValue Method (Object, Object[])

Returns the value of the field or property represented by the current object 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 Object GetValue(
	Object instance,
	Object[] index
)

Parameters

instance
Type: System.Object
The object whose field or property value will be returned (null if the field or property is static).
index
Type: System.Object[]
Optional index values for indexed properties. null for fields or non-index properties.

Return Value

Type: Object
The value of the field or property.
See Also