Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / ILocation­Binding(T) Interface / ILocation­Binding(T) Methods / ILocation­Binding(T).​Set­Value Method / ILocation­Binding(T).​Set­Value Method (Object, Arguments, T)

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

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

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.0.18.0 (6.0.18.0)
Syntax
C#
void SetValue(
	ref Object instance,
	Arguments index,
	T value
)

Parameters

instance
Type: System.Object
Target instance from which the field or property should be retrieved (null if the field or property is static).
index
Type: PostSharp.Aspects.Arguments
Index arguments, if the location is an indexer property.
value
Type: T
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.

See Also