Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

LINQ Language Deep Dive with Visual Studio 2008

57 minutes, 2 seconds


Right click “Save as…”

Ever wonder what really happens when you write a simple LINQ query? A lot of new language features went into the compilers in Visual Studio 2008 to make LINQ work. In this interview I sit down with Jonathan Aneja, a Program Manager on the Visual Basic Compiler team, who dives deep into these features like Type Inference, Anonymous Types, Lambda Expressions, Expressions Trees, and more. He explains what's actually happening behind the scenes and all the work the compiler is doing for you when you write a LINQ query. My head almost explodes at the end but I learned a lot of important concepts. Wink

Check out Jonathan on the VB Team Blog.

-Beth Massi, Visual Studio Community


Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
  • Although I use c# for my programming, it was amazing lucid and easy to follow Jonathan.

    It really gives a wonderful overview of what happens  behind the scenes when you write a LINQ statement, and at the same time introduces the user to the new features of .net framework 3.5.

    I liked it soo much that I have downloaded it and would be sharing it with other team members,

    Thanks for the presentation,


  • CharlesCharles Welcome Change

    Agreed. Really good stuff here. Thanks, Beth and Jonathan!



  • figuerresfiguerres ???

    As far as i see it linq is one of the best things to happen to .net since .net V1

    in my handheld apps I use linq and a binary serializer plus some classes that share an interface to be a kind of "mini-database"

    beeing able to combine LINQ with Generics and the typed collections is just sweet!

    and on the CE devices i can store most of the data and just keep a small list in-memory to re-load the object when needed.

    I have about 80 mobile devices in use right now...  and the customer just keeps asking us to pack in more features.

  • Jonathan explains some newish VB concepts in a palatable way. Thanks for not exploding my head. Here's a linky that was mentioned for easy access: http://blogs.msdn.com/vbteam/archive/2007/08/29/implementing-dynamic-searching-using-linq.aspx

  • Hello Jonathan, You are wise man!

  • I love watching other developers work with LINQ.   You always pick up something you didn't know.    Good video.

  • Kaushal GajjarKaushal Gajjar Kaushal

    Great overview! 


    Learning from this video is much easier then browsing msdn documents.

  • Kaushal GajjarKaushal Gajjar Kaushal

    I am wondering what would be the correct way of giving a specific datatype to IQuariable of Anynomous using  "WITH". For example:


     Dim Contacts = From C In PracticeDB.Contacts _ 
    Select New With {.ID = C.ID, .Name = C.Name}


     Dim Query = New With {.ID = 1, .Name = "Kaushal"}


    In above both query it has "ID" and "Name" property of anonymous type.


    In above, How to specify "ID" property as Decimal? While selecting the statement from DataContext ID appears as Decimal because the type specified is "Numeric" in SQL Database.


    So far I found a way by parsing data type to integer in first query as following:


    Dim Contacts = From C In PracticeDB.Contacts _ 
    Select New With {.ID = Integer.Parse(C.ID), .Name = C.Name}


     Dim Query = New With {.ID = 1, .Name = "Kaushal"}


    I am wondering if there is any way to specify within WITH Statement.



  • How about in visual studio 2010?

  • Great video! Very inspiring and informative, I thought I knew the details of LINQ pretty well, but this video really took my understanding of LINQ into a higher level resolution. Keep up the good work!

  • @ Beth Massi Cool Jonathan have no hair on head so i thing you need to donate some part of your hair to jonathan. Thanks for a great post.

  • Zian Choyzian Exploding heads since 1988

    This is a fantastic video.

    I love how it effectively tricks the viewer into learning all these otherwise-mindblowing programming concepts with something that appears very approachable.

Remove this comment

Remove this thread


Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.