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,
ReflectionWays way,
params Object?[] indexParameters
)
Public Shared Sub SetIndexedMember (
instance As Object,
value As Object,
way As ReflectionWays,
ParamArray indexParameters As Object()
)
public:
static void SetIndexedMember(
Object^ instance,
Object^ value,
ReflectionWays way,
... array<Object^>^ indexParameters
)
static member SetIndexedMember :
instance : Object *
value : Object *
way : ReflectionWays *
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.
If way is Auto, then the DynamicDelegate way will be used.