Blog LogoBlog Logo

Tag: Extension Methods

All tags

Crazy Extension Methods Redux (with Oxygene)

Back in April I blogged about a crazy thing you can do with extension methods in C#3.0 . At the time I was adamant that it was a bad idea. I still think it is...

— 07 Aug 2008

Crazy Extension Method

Here is an example of a crazy extension method that alters the semantics of method calling. First the extension method: public static class MyExtensions {...

— 16 Apr 2008

Mixins in C# 3.0

This is something I've been mulling around in my head for a few days now. "Out of the box" C# 3.0 does not support mixins, but I think you can get some of the...

— 24 Feb 2008

Extensions Methods

There have been many times a class has needed to be extended, but the additional code just doesn't sit right on the class itself, or I don't have access to the class...

— 18 Jun 2007