Like other LINQ API methods that extract a scalar value from a sequence, Single has a companion SingleOrDefault.
I’ve witnessed and been involved in several discussions around the correctness or usefulness of the Single method in the LINQ API.
When I’m building a demo solution I usually have several projects to demo different features.
C# 4.0 introduces a new type: dynamic. dynamic is a static type that bypasses static type checking.