|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
System.EventHandler<TEventArgs> Question?With the introduction of Generics in the CLR, why is it that the first
parameter of the EventHandler delegate is of Type Object and not a Generic Type? Since everytime we want a reference to the object that raised the event we always have to cast the object to its native type befoe we use it. So, I was expecting that in .NET 2.0 the signature for this delegate would be EventHandler<TSender, TEventArgs> Since this is the benefit that Generics gives us. Anyone have any suggestions to the reasons why this was not done? |
|||||||||||||||||||||||