Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code.​Invokers / IIndexer­Invoker / Set­Value

Method SetValue

SetValue(Object, Object, Object[])

Set the value for an indexer.

Declaration
dynamic SetValue(dynamic instance, dynamic value, params dynamic[] args)
Parameters
Type Name Description
Object instance
Object value
Object[] args
Returns
Type Description
Object
Remarks

Note: the order of parameters is different than in C# code: e.g. instance[args] = value is indexer.SetIndexerValue(instance, value, args).