Author: you've been HAACKED | Posted on: 1/14/2009 8:58:02 PM | Views : 857

I recently wrote a post in which I examined some existing implementations of named format methods and then described the fun I had writing a routine for implementing named formats . In response to that post, I received two new implementations of the method that are worth calling out. The first was sent to me by Atif Aziz , who I?ve corresponded with via email regarding Jayrock . He noticed that the slowest format method by James had one obvious performance flaw and fixed it up. He then sent me another version that passed all my unit tests. Here it is in full, and it?s much faster than before. public static class JamesFormatter { public static string JamesFormat( this string format, object source) { return FormatWith(format, null , source); Read...(read more) ...

Go to the complete details ...