Extension Method internals – for Alex
April 5, 2008Alex and I were pondering the nature of Extension Methods just the other day, so this is was well timed
Alex and I were pondering the nature of Extension Methods just the other day, so this is was well timed
The first method that should go in there is this one: very clever idea, and needed it only moments ago. Nothing revolutionary, but he’s right – almost every time you need to use String.Format, it’s after you’re halfway through writing a string…
You get to do things like this:
“Some long string la la la ooh {0} really should be a template”.FormatWith(this);
Click Here for the implementation: Format As Extension method
Recent Comments