tags:

views:

70

answers:

3

If I have registered an event as following

List.Changed += new ChangedEventHandler(ListChanged);

what should be the best way of de registering it in destructor

List.Changed -= new ChangedEventHandler(ListChanged);

or

List.Changed -=ListChanged;
+1  A: 

the second option is just shorthand

Rob Fonseca-Ensor
A: 

The second option. And you can subscribe to it the same way:

List.Changed += ListChanged;
Jamie Ide
+1  A: 

See this answer to the question.

KMan
Thanks a lot, KMan.
Ram