PostSharp 2023.0 / / 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 Method (ILocation­Binding, Object, Arguments)

LocationBindingExtensions.GetValue Method (ILocationBinding, Object, Arguments)

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

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public static Object GetValue(
	this ILocationBinding locationBinding,
	Object instance,
	Arguments index


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

Return Value

Type: Object
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. 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