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 SetProperty(
Object? instance,
PropertyInfo property,
Object? value,
params Object?[]? indexParameters
)
Public Shared Sub SetProperty (
instance As Object,
property As PropertyInfo,
value As Object,
ParamArray indexParameters As Object()
)
public:
static void SetProperty(
Object^ instance,
PropertyInfo^ property,
Object^ value,
... array<Object^>^ indexParameters
)
static member SetProperty :
instance : Object *
property : PropertyInfo *
value : Object *
indexParameters : Object[] -> unit
For setting the property this method uses the DynamicDelegate reflection way.