Method Invoke
Invoke(Delegate?, object?[]?)
Executes the specified delegate, on the UI thread, with the specified list of arguments.
public static object? Invoke(Delegate? method, object?[]? args = null)
Parameters
method
DelegateA delegate to a method that takes parameters of the same number and type that are contained in the
args
parameter.args
object[]An array of objects to pass as arguments to the specified method. This parameter can be
null
if the method takes no arguments.