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