PostSharp 6.4 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Location­Binding­Extensions Class / Location­Binding­Extensions Methods / Location­Binding­Extensions.​Get­Value Method / Location­Binding­Extensions.​Get­Value(T) Method (ILocation­Binding(T), Object, Arguments)

LocationBindingExtensions.GetValue<T> Method (ILocationBinding<T>, Object, Arguments)

Gets the value of an indexer (property with arguments).

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
public static T GetValue<T>(
	this ILocationBinding<T> locationBinding,
	Object instance,
	Arguments index
)

Parameters

locationBinding
Type: PostSharp.Aspects.ILocationBinding<T>
The binding for the indexer.
instance
Type: System.Object
The instance for which the indexer is evaluated, or null if the indexer is static.
index
Type: PostSharp.Aspects.Arguments
The arguments of the indexer.

Type Parameters

T

Return Value

Type: T
The indexer value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILocationBinding<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also