Category Archives: Linq

This is beautiful code

If you’ve ever listened to Hanselminutes, you’ve no doubt heard Scott mention “code smell” or “pretty code”.  The new language features in VB9, including LINQ and XML being a native type, make XML generation not only easy, but beautiful.  Aside … Continue reading

Posted in .NET 3.5, Linq, Visual Studio 2008, Windows XP | Leave a comment

LINQ Error: String must be exactly one character long.

When working with some Linq today, I kept getting the following error: String must be exactly one character long. This one had me scratching my head for a while.  Turns out the problem was in the Linq to SQL designer, … Continue reading

Posted in Linq | 5 Comments