Derik Whittaker



Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at
Deeper in .Net Live -- Linq internals with VB 9 (oh yea, VB baby)

Author: Scott Wisniewski

The first presentation of the day is 'Linq internals with VB 9'.  The presenter is a Microsofty that made the trek out from Redmond to visit the midwest.  The goal of the presentation is to give a high level overview of Linq, and it was pulled of pretty well.

Here are some of the topics that were covered

  • Showed the 'painful' way of doing data retrieval in .Net 2.0.  Then moved on to show how to accomplish the same task via Linq.
  • Demo'ed how you could override Linq keywords such as Where if you wanted to override the default behavior (hey, I am sure someone will want this).
  • Demo'ed XLinq, this is pretty cool.  Sadly the IDE support is ONLY for VB (damn vb guys).  Us C# devs can still use XLinq, but only via the API, we will get no intellisense.  Here are 2 postings about XLinq Steve Eichert and DonXML.  Actually had a VB developer say to me 'Finally something us VB guys have that you C# do not, we are now a first class citizen' -- Laughed

Ok, this is just my little rant on my VB syntax hates

  • Using the _ as line separators
  • Lack of needing () for methods (confusing anyone)
  • Extension methods are ODD
  • Non-case sensitive
  • Lambda syntax is 'ugly'
    Function (c) c.SomeProperty = "SomeValue"


Nice overall theme, but would have liked to see more time spent on Linq it self.  There was a large percentage of time spent 'building' the test application.

Till next time,

Posted 04-05-2008 9:10 AM by Derik Whittaker
Filed under:



Don Demsak wrote re: Deeper in .Net Live -- Linq internals with VB 9 (oh yea, VB baby)
on 04-05-2008 12:20 PM

From someone that just did a whole day presentation on LINQ, let me tell you, it is hard to cover the language syntax and a query provider (other than LINQ to Objects) in an hour (or even in an hour and a half).  I spent 8 hours teaching an intro to LINQ pre con workshop, and we barely scratched the surface.

I spent 2 hours just on the languge improvements and the basic extension methods/clauses that make LINQ possible, and I could have spent another 2 hours in demos.

My favorite topic, though, is writing your own query providers.  Well that an how cool LINQ to XML is, especially for the VB guys (and I use to consider myself more of a C# guy).  If you are going to use LINQ to XML, just use VB 9, it is just plan better than using the pure API (and believe me, I was an anti XML Literals and XML Properties guy, but I've grown to love them).

Derik Whittaker wrote Deeper in .Net wrap up
on 04-06-2008 11:20 AM

Wow, yesterday was great. Myself and Jordan Martz make the trek up from Chicago land up to Brookfield

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Google Reader or Homepage Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of
Red-Gate Tools For SQL and .NET


SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
NHibernate Profiler
Balsamiq Mockups
JetBrains - ReSharper
Web Sequence Diagrams
Ducksboard<-- NEW Friend!


Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers


Community Server (Commercial Edition)