LINQ Language Deep Dive with Visual Studio 2008

Download this episode

Download Video

Description

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.

Enjoy,
-Beth Massi, Visual Studio Community

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      Varun Pant

      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,

      Cheers,

    • User profile image
      Charles

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

       

      C

    • User profile image
      figuerres

      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.

    • User profile image
      BSalita

      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

    • User profile image
      JanWinMan

      Hello Jonathan, You are wise man!

    • User profile image
      JerryOdom

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

    • User profile image
      Kaushal Gajjar

      Great overview! 

       

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

    • User profile image
      Kaushal Gajjar

      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.

       

       

    • User profile image
      Tom10

      How about in visual studio 2010?

    • User profile image
      M.A.Hanin

      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!

    • User profile image
      anirudha

      @ 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.

    • User profile image
      zian

      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.

    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.