PostSharp6.0/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)

LocationBindingExtensions.GetValue Method (ILocationBinding, Object)

Gets the value of a field or property.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.1.6.0 (6.1.6.0)
Syntax
C#
public static Object GetValue(
	this ILocationBinding locationBinding,
	Object instance
)

Parameters

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

Return Value

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