Following the presentation on C# 3.0 enhancements, yesterday I held a presentation on LINQ to Objects to my team.

I am sharing this to everyone who wants a jump start on LINQ as this technology is likely to change the way we access data in our day to day programming. You can download the presentation and the code used throughout the presentation. You will need Visual Studio 2008 (any edition) to experiment with this.

Presentation (in PDF format): linq-to-objects.pdf

Presentation (in PowerPoint 2007 format): linq-to-objects.zip

Visual Studio 2008 Sample Code: linq-to-objects-code.zip

2 Responses to “LINQ to Objects”

  1. MI says:

    Hi,

    I tried your code on linq-to-objects. In one sample, you are data binding to the Books csv file. Why is that the author name is not displayed in the grid

    Regards,
    MI

  2. Valer BOCAN says:

    You are probably referring to sample #8. If you have a look at the query, you will notice that each record consists of ISBN, Title, Publisher (each as one value, string) and Authors which is essentially a list of strings. Since the columns of the datagrid are autogenerated, the authors don’t show up because the grid isn’t smart enough as to put in place a combobox or something similar. You may want to manually add that in the datagrid designer if you want authors to be displayed.

Leave a Reply