Finally C# gets to be usable!

The best thing to happen since the inceptions of C#: “anonymous methods” are .NET delegates cum closures. Finally we can write syntax like:



addButton.Click += new EventHandler(object sender, EventArgs e) {



list.Add(new ListItem());


}


Even better: Anonymous methods will be closures, so you can use variables from the scope. This is a much needed amendment. Why was it not there from the start? (whine, whine)

Copyright © 2003 Johannes Brodwall. All Rights Reserved.

About Johannes Brodwall

Johannes is Principal Software Engineer in SopraSteria. In his spare time he likes to coach teams and developers on better coding, collaboration, planning and product understanding.
This entry was posted in Technology. Bookmark the permalink.