O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Combining Multiple Collections

LINQ provides several options to combine collections. Of course, it doesn’t make sense to do that randomly. The collections should have some form of logical relationship. But using the correct expression can save you a lot of time. The section, “How LINQ Works,” in Chapter 24, explains a relationship between two collections. That relationship is also the topic of this section (see Figure 25-2).

The LINQ sample program generates two tables that are logically connected through two column IDs.

Figure 25-2. The LINQ sample program generates two tables that are logically connected through two column IDs.

Combining Collections Implicitly

You can use the From clause to combine two collections. The result gives you a new ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required