Open sandboxFocus

Method GetValue

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