Open sandboxFocus

Delegate PropertyGetter<TValue, TIndex>

In PostSharp, this delegate allowed the run-time code of the aspect to access an indexer in the target code. In Metalama, no run-time helper is required because the template directly generates run-time code. Use IIndexer.GetValue(params dynamic?[]) and IIndexer.SetValue(dynamic?, params dynamic?[]) to generate run-time code for any indexer.

Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In PostSharp, this delegate allowed the run-time code of the aspect to access an indexer in the target code. In Metalama, no run-time helper is required because the template directly generates run-time code. Use 'IIndexer'.'IIndexerInvoker.GetValue(params dynamic?[])' and 'IIndexer'.'IIndexerInvoker.SetValue(dynamic?, params dynamic?[])' to generate run-time code for any indexer.", false)]
public delegate TValue PropertyGetter<TValue, TIndex>(TIndex index)
Parameters
Type Name Description
TIndex index In PostSharp, this delegate allowed the run-time code of the aspect to access an indexer in the target code. In Metalama, no run-time helper is required because the template directly generates run-time code. Use . and . to generate run-time code for any indexer.
Returns
Type Description
TValue In PostSharp, this delegate allowed the run-time code of the aspect to access an indexer in the target code. In Metalama, no run-time helper is required because the template directly generates run-time code. Use . and . to generate run-time code for any indexer.
Type Parameters
Name Description
TValue
TIndex

Constructors

Name Description
PropertyGetter(object, nint)

Methods

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