MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​InvokersIIndexer­Invoker
Open sandboxFocus

IIndexerInvoker Interface

Allows accessing the value of indexers.

Namespace: Metalama.Framework.Code.Invokers
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IIndexerInvoker

Methods

Name Description
GetValue(Object[])

Generates run-time code that gets the value of the current indexer with specified arguments. By default, the target instance of the indexer is this unless the indexer is static, and the base implementation of the indexer is invoked, i.e. the implementation before the current aspect layer. To change the default values, or to use the ?. null-conditional operator, use the With(InvokerOptions) method.

SetValue(Object, Object[])

Generates run-time code that sets the value of the current indexer with specified arguments. By default, the target instance of the indexer is this unless the indexer is static, and the base implementation of the indexer is invoked, i.e. the implementation before the current aspect layer. To change the default values, or to use the ?. null-conditional operator, use the With(InvokerOptions) method.

With(InvokerOptions)

Gets an IIndexerInvoker for the same index and target but with different options.

With(Object, InvokerOptions)

Gets an IIndexerInvoker for the same indexer but with a different field or property and with different options.