John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Catégorie:
Code, syntaxe and commandes
>>>
>>>Do you have a suggestion for the next thread in my little C# series? How about generics?
>>
>>I'm not sure how far along you are, but I think understanding delegates is really important.
>
>I would second that and while you are at it, naming of delegates, handlers, events as there is so much confusion amongst writers that it was the hardest part for me in learning this topic. Some called the delegates ConnectionStateChangedDelegate and others called it ConnectionStateChangedHandler and others OnConnectionStateChanged. I have decided what is right for me.
>
>Tim
With the new generic EventHandler class, you don't have to worry about delegates any more. The plumbing is done behind the scenes.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement