Open sandboxFocus

Delegate PropertySetter<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 void PropertySetter<TValue, TIndex>(TIndex index, TValue value)
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.
TValue value 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
PropertySetter(object, nint)

Methods

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