News for hackers. Stuff that matters.
Re:C++ in Coders at Work by barrkel on Friday October 16, 2009 @04:24PM (#886111)
At least C# doesn't require you to allocate a file for your class, and a simple two-field class should consume no more than 5 lines of code. And if you're willing to use a generic tuple type, you don't need to declare a class at all; just use Tuple<Foo,Bar> as needed.
Re:C++ in Coders at Work by dmnd on Saturday October 17, 2009 @04:16AM (#886769)
Or just use an anonymous type:

  var simple = new { Field1 = "foo", Field2 = "bar" };