PostSharp4.3//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)
LocationBindingExtensions.GetValue<T> Method (ILocationBinding<T>, Object)
Gets the value of a field or property.

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: (
public static T GetValue<T>(
	this ILocationBinding<T> locationBinding,
	Object instance


Type: PostSharp.Aspects.ILocationBinding<T>
The binding for the field or property.
Type: System.Object
The instance for which the field or property is evaluated, or null if the location is static.

Type Parameters


Return Value

Type: T
The field or property 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