Tip
To preserve the changes of a mutable value type embed it into a variable of Object type and pass it to the instance parameter of this method.
public static void SetIndexedMember(
Object instance,
Object? value,
params Object?[] indexParameters
)
Public Shared Sub SetIndexedMember (
instance As Object,
value As Object,
ParamArray indexParameters As Object()
)
public:
static void SetIndexedMember(
Object^ instance,
Object^ value,
... array<Object^>^ indexParameters
)
static member SetIndexedMember :
instance : Object *
value : Object *
indexParameters : Object[] -> unit
This method ignores explicitly implemented interface properties.
If you already have a PropertyInfo instance of the indexed property, then use the SetProperty(Object, PropertyInfo, Object, ReflectionWays, Object) method for better performance.
For setting an indexed property this method uses the DynamicDelegate reflection way.