PostSharpAPI ReferencePost­Sharp.​AspectsILocation­BindingSet­Value
Open sandboxFocus

ILocationBinding.SetValue Method

SetValue(ref Object, Arguments, Object)

Invokes the Set semantic on the next node in the chain of invocation.

Declaration
void SetValue(ref object instance, Arguments index, object value)
Parameters
Type Name Description
Object instance

Target instance from which the field or property should be retrieved (null if the field or property is static).

Arguments index

Index arguments, if the location is an indexer property.

Object value

New value to be stored at the location.

Remarks

The instance parameter is passed by reference so that instance methods of value types ( struct in C#) are allowed to change the value of the instance.