ServicesResourcesConferencesOur TeamWeblogsAboutContact
   
Delegates, Anonymous Methods and Refactoring

Agile development processes mandate a certain amount of refactoring. If you for example encounter an application like this ...

using System;

class app
{
  static void Main()
  {
    for (int i = 100;i>-2;i--)
      Console.WriteLine(i);
  }
}

... it could easily be refactored this way, yielding a much more readable version. I'm however still not sure if Don really wanted to show us the power of refactoring, or if he actually wanted to scare us away from anonymous methods ;-)

posted on Wednesday, July 23, 2003 11:23 AM

Powered by Community Server, by Telligent Systems