MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​Aspects.​AdvicesProperty­Getter<TValue>
Open sandboxFocus

PropertyGetter<TValue> Delegate

In PostSharp, this delegate allowed the run-time code of the aspect to access a property in the target code. In Metalama, no run-time helper is required because the template directly generates run-time code. Use IProperty.Value to generate run-time code for any property.

Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In PostSharp, this delegate allowed the run-time code of the aspect to access a property in the target code. In Metalama, no run-time helper is required because the template directly generates run-time code. Use 'IProperty'.'IExpression.Value' to generate run-time code for any property.", false)]
public delegate TValue PropertyGetter<TValue>()
Returns
Type Description
TValue In PostSharp, this delegate allowed the run-time code of the aspect to access a property in the target code. In Metalama, no run-time helper is required because the template directly generates run-time code. Use . to generate run-time code for any property.
Type Parameters
Name Description
TValue

Constructors

Name Description
PropertyGetter(object, nint)

Methods

Name Description
BeginInvoke(AsyncCallback, object)
EndInvoke(IAsyncResult)
Invoke()