Shorter Construction Syntax
Did you ever notice the redundancy that’s forced by C#’s syntax for invoking and defining constructors? using System.Collections.Generic; class Thing { Thing(int x, int y) { … } public static void Main() { Thing a = new Thing(3,2); Dictionary<string,double> b = new Dictionary<string,double>(); } } It might be nice if C# added a less redundant […]
Posted on February 25th, 2007 by Andrew
Under C# / Common Language Infrastructure | 3 Comments »