Using the .ToDictionary() Extension Method

Last time, I showed how you can use the Cast() extension method defined on IEnumerable/IEnumerable(Of T) to do an element conversion for a sequence that implements one of the enumerable interfaces. Today I want to talk about the ToDictionary extension method. This extension method lets you take a sequence that implements IEnumerable(Of T) and build…

1

Using the .Cast() Extension Method

If you take a look at the set of extension methods offered on IEnumerable (and IEnumerable(Of T)), you’ll find that there are plenty of very interesting extension methods. One of them is the Cast() extension method. What does this extension method do? It provides a way to convert an IEnumerable(Of T) to an IEnumerable(Of U)….

1

Understanding LINQ

Note : I plan to post this blog on the VB team blog eventually. However, because of the length and complexity, I’m posting this up on my blog for now to hopefully get some eyes on it so that I won’t make a fool of myself on the team blog Please feel free to contact…

1