Playing with Orcas
time to read 2 min | 266 words
As usual, just a set of random impressions:
- Anonymous types are annoyingly limited. You can't define arrays of anonymous types, for instnace, which can open up more options for intent revealing code.
- Linq seems to be heavily based around the idea of Expression, a lot of the stuff that is going on there revolves around Expression and operation on Expressions.
- Here is a new way to assert that a collection contains all the items that it should:
Assert.AreEqual(3, list.Intersect(new string[]{"ayende","rahien","bar"}).ToList().Count); - I am annoyed that this doesn't work, though:
Assert.AreEqual(3, list.Intersect({"ayende","rahien","bar"}).ToList().Count);Shouldn't this be handled by the collection initializer?

Comments
Comment preview