We have a system where we need to dynamically change what happens at the end of a set of steps.
We’re doing this using a delegate. However the methods that we need to call at the end of the set of steps have different signatures.
We have a choice at the moment to either do this using a standard delegate signature (probably copying the event handler one from ASP.Net) or doing it some other way (undertermined!)
Is there a way to do this with delegates in .Net 3.5 ? Or could we do this using C# 4.0’s named parameters or optional parameters on the delegate?
We have a system where we need to dynamically change what happens at the
Share
We got around this by using the event handler method signature, i.e. our delegate expects (object sender, eventargs e) and we built a custom event args class.