Did you know? Delegates to extension methods

I didn’t know about this until recently: You can take a delegate to an extension method as if it was an instance method: http://csharpindepth.com/ViewNote.aspx?NoteID=92 The delegate’s target will be set to the instance. Nice!


Using delegates – a simple sample

A while ago Charlie Calvert did a great job explaining delegates here. Readers were asking for more samples that would demonstrate the benefits of delegates. After a lot of hard thinking (somehow it’s hard to find an easy sample!) I’ve come up with a simple sample which will hopefully demonstrate just that. Sorry if you…


How to: override static methods

I know, I know. You can’t override static methods. The title was just a trick to provoke your interest 🙂 In this post, I’ll first try to explain why it is impossible to override static methods and then provide two common ways to do it. Or rather – two ways to achieve the same effect….