PostSharp 2023.0 / / Post­Sharp Documentation / 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: 2023.0.3.0 (2023.0.3.0)
public Object GetValue(
	Object instance,
	Object[] index


Type: System.Object
The object whose field or property value will be returned (null if the field or property is static).
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