public delegate void DelegateType();
. , .
BeginInvoke, . # System.Delegate, ( System.Delegate), .
:
new DelegateType(functionName)
(DelegateType), .
Often, new APIs will use a known type, such as System.Action (which has the same syntax as your DelegateType). If the method takes an “action”, you will not need the definition above, and you could do:
CallMethodTakingAction(functionName);
source
share