C
chelrw
The pattern supported by C# for delegates seems to be:
new Delegate(CallbackFunction)
Delegate.Invoke(arg1, arg2)
Callbackfunction(arg1,arg2) is invoked
What is the simplest way to get the pattern:
new Delegate(CallbackFunction, arg1)
Delegate.Invoke(arg2, arg3)
Callbackfunction(arg1,arg2,arg3) is invoked
I would have tried inheriting from Delegate an adding a new
constructor etc. but the class is sealed??
thanks,
r
new Delegate(CallbackFunction)
Delegate.Invoke(arg1, arg2)
Callbackfunction(arg1,arg2) is invoked
What is the simplest way to get the pattern:
new Delegate(CallbackFunction, arg1)
Delegate.Invoke(arg2, arg3)
Callbackfunction(arg1,arg2,arg3) is invoked
I would have tried inheriting from Delegate an adding a new
constructor etc. but the class is sealed??
thanks,
r