
Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
> > > Which version of the framework are you using? If you can get away
> > > without declaring your own delegate type, e.g. using EventHandler<T>,
[quoted text clipped - 8 lines]
> Jon Skeet - <sk...@pobox.com>http://www.pobox.com/~skeet Blog:http://www.msmvps.com/jon.skeet
> World class .NET training in the UK:http://iterativetraining.co.uk
That worked.. thanks
What if i was using an older version.. then where would i put the
delegates?
Jon Skeet [C# MVP] - 28 Mar 2008 17:10 GMT
<snip>
> That worked.. thanks
> What if i was using an older version.. then where would i put the
> delegates?
Personally, I tend to like having a file called Delegates.cs with all
the delegates for the namespace. It means it's one place to find them,
and they're neither cluttering up other files, nor taking up a whole
file for a single signature. It's entirely up to you though.
If the delegate is only going to be used by a single type, you could
nest it within that type, if you want.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Ignacio Machin ( .NET/ C# MVP ) - 28 Mar 2008 20:09 GMT
> > > > Which version of the framework are you using? If you can get away
> > > > without declaring your own delegate type, e.g. using EventHandler<T>,
[quoted text clipped - 12 lines]
> What if i was using an older version.. then where would i put the
> delegates?
Hi,
If using version 1.1 (NOTE that if using 2.0 you can still use
EventArgs<T>) you need to declare the delegate explicitely.