PostSharpAPI ReferencePost­Sharp.​AspectsLocation­Binding­ExtensionsGet­Value
Open sandboxFocus

LocationBindingExtensions.GetValue Method

GetValue(ILocationBinding, Object, Arguments)

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

Declaration
public static object GetValue(this ILocationBinding locationBinding, object instance, Arguments index)
Parameters
Type Name Description
ILocationBinding locationBinding

The binding for the indexer.

Object instance

The instance for which the indexer is evaluated, or null if the indexer is static.

Arguments index

The arguments of the indexer.

Returns
Type Description
Object

The indexer value.

See Also

GetValue<T>(ILocationBinding<T>, Object, Arguments)

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

Declaration
public static T GetValue<T>(this ILocationBinding<T> locationBinding, object instance, Arguments index)
Parameters
Type Name Description
ILocationBinding<T> locationBinding

The binding for the indexer.

Object instance

The instance for which the indexer is evaluated, or null if the indexer is static.

Arguments index

The arguments of the indexer.

Returns
Type Description
T

The indexer value.

Type Parameters
Name Description
T
See Also

GetValue(ILocationBinding, Object)

Gets the value of a field or property.

Declaration
public static object GetValue(this ILocationBinding locationBinding, object instance)
Parameters
Type Name Description
ILocationBinding locationBinding

The binding for the field or property.

Object instance

The instance for which the field or property is evaluated, or null if the location is static.

Returns
Type Description
Object

The field or property value.

See Also

GetValue<T>(ILocationBinding<T>, Object)

Gets the value of a field or property.

Declaration
public static T GetValue<T>(this ILocationBinding<T> locationBinding, object instance)
Parameters
Type Name Description
ILocationBinding<T> locationBinding

The binding for the field or property.

Object instance

The instance for which the field or property is evaluated, or null if the location is static.

Returns
Type Description
T

The field or property value.

Type Parameters
Name Description
T
See Also