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

LocationBindingExtensions.SetValue Method

SetValue(ILocationBinding, Object, Arguments, Object)

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

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

The binding for the indexer.

Object instance

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

Arguments index

The arguments of the indexer.

Object value

The new value.

See Also

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

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

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

The binding for the indexer.

Object instance

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

Arguments index

The arguments of the indexer.

T value

The new value.

Type Parameters
Name Description
T
See Also

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

Sets the value of a field or property.

Declaration
public static void SetValue<T>(this ILocationBinding<T> locationBinding, object instance, T value)
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 set, or null if the location is static.

T value

The new value assigned to the field or property.

Type Parameters
Name Description
T
See Also

SetValue(ILocationBinding, Object, Object)

Sets the value of a field or property.

Declaration
public static void SetValue(this ILocationBinding locationBinding, object instance, object value)
Parameters
Type Name Description
ILocationBinding locationBinding

The binding for the field or property.

Object instance

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

Object value

The new value assigned to the field or property.

See Also