Open sandboxFocus

Class Property<TValue, TIndex>

In PostSharp, this class 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.

Inheritance
Property<TValue, TIndex>
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In PostSharp, this class 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 sealed class Property<TValue, TIndex>
Type Parameters
Name Description
TValue
TIndex

Constructors

Name Description
Property(PropertyGetter<TValue, TIndex>, PropertySetter<TValue, TIndex>)

Fields

Name Description
Get
Set