Ingo Rammer's Weblog: Delegates, Anonymous Methods and Refactoring
Delegates, Anonymous Methods and Refactoring
July 23, 2003 11:23 AM

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 ;-)