Open sandboxFocus

Method GetCurrentValue

GetCurrentValue()

Retrieves the current value of the location without overwriting the PostSharp.Aspects.Internals.LocationLevelAdviceArgs.Value property.

Declaration
T GetCurrentValue()
Returns
Type Description
T

The current value of the location, as returned by the next node in the chain of invocation (see Binding).

Remarks
<div class="NOTE"><h5>note</h5><p>

This method is designed to be invoked during the execution of the advice. If you need to retrieve or store the value of the location at a different time, it is recommended to use the Binding . Indeed, a binding is stateless, while LocationInterceptionArgs instances may be shared among different aspects.