Tag Info

New answers tagged


I'd suggest doing both! Those on* methods are the ideal place from which to raise those events. (Well, it must have some merit; that's the way most, if not all, of the .Net Windows Controls work). internal class Button2 : System.Windows.Forms.Button { protected overrides void onClick( EventArgs e ) { if ( ! ...


Of the now partially outdated but still useful article from MSDN: "When to Use Delegates Instead of Interfaces (C# Programming Guide)", a few of the rules-of-thumb stand out: Use a delegate in the following circumstances: (3) The caller has no need to access other properties, methods, or interfaces on the object implementing the method. My ...

Top 50 recent answers are included