Difference between event subscription new delegate(method)/method

MyEvent.OnEvent += new EventHandler(method)

MyEvent.OnEvent += method

Whats the difference ?

Whats preferred ?

by malabmalab via /r/csharp

Leave a Reply