PostSharp6.2/API Reference/Post­Sharp.​Aspects Namespace/ILocation­Binding Interface/ILocation­Binding Methods/ILocation­Binding.​Get­Value Method

ILocationBinding.GetValue Method

Invokes the Get semantic on the next node in the chain of invocation.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
Object GetValue(
	ref Object instance,
	Arguments index
)

Parameters

instance
Type: System.Object
Target instance from which the field or property should be retrieved (null if the field or property is static).
index
Type: PostSharp.Aspects.Arguments
Index arguments, if the location is an indexer property.

Return Value

Type: Object
The value stored at the location.
Remarks

The instance parameter is passed by reference so that instance methods of value types ( struct in C#) are allowed to change the value of the instance.

See Also