Browse by Tags

21 maart 2008
An explanation of Linq query providers
Linq query providers appear all over the place. Some say "Linq to Everything" to refer to all flavors of Linq that are out there: Linq to Objects, XML, SQL, DataSets, SharePoint, Amazon, Flickr, and so on. These are generally referred to as Linq query providers. However, a query provider is... Read More...
Filed under: ,
17 juni 2007
Developer Days 2007: a blast
It took a couple of days to wind down again. The 2007 edition of the Dutch Developer Days were exciting and excellent. It was real nice to meet nearly everybody (or so it feels). I did get around to do both presentations on Linq and robotics. The Microsoft Robotics session was scheduled after all. So... Read More...
07 mei 2007
Speaking at Developer Days 2007
On June 13th and 14th I will be speaking at the Developer Days 2007 in Amsterdam, together with a lot of renowned national and international speakers . My talk is entitled " Applied Linq " and will cover Linq beyond the basics and give an impression of how Linq can be applied in "everyday" situations... Read More...
08 november 2006
Is Linq to SQL here to stay?
A couple of days ago the October 2006 CTP of Visual Studio Orcas appeared. Loads of people blogged about it appearing, but I get the impression not a lot of people actually played with it. In the meantime Pablo Castro from the ADO.NET data team just posted on their weblog that: “ Also, since the ADO... Read More...
07 november 2006
Sneak peak at Linq from C# 3.0 perspective
You might be wondering where all this C# 3.0 is going. Especially when reading the previous post on Lambda expressions . Let me give you a sneak preview of how Linq needs most of what’s in C# 3.0. Linq uses lambda expressions quite heavily. Linq expresses queries with query operators, which essentially... Read More...
Filed under: ,
07 november 2006
C# 3.0 for mere mortals, part 5: Lambda expressions
Time to continue with the longest running series on C# 3.0. Lambda expressions originated from lambda calculus and found its way into functional languages such as Lisp and Haskel . Lambda calculus is all about calculations with functions. Functional programming on the other hand uses the application... Read More...
Filed under: ,
02 november 2006
Don't overuse var keyword
Most of the Linq demos that are around show sample query expressions like this (the demos shown are largely from the 101 samples included with the May 2006 CTP): int [] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; var lowNums = from n in numbers where n < 5 select n; The point of this posting is that... Read More...
Filed under: ,
31 oktober 2006
Progress on Linq in .NET Framework 3.5
Microsoft has released the September 2006 CTP of Visual Studio “Orcas” as an image for Virtual PC 2004 (go get VPC 2004 SP1 , it’s free). This image contains an installed version of VS2005 “Orcas” and SQL Server 2005 on Windows Server 2003. I have heard of people who where... Read More...
29 oktober 2006
INETA talk for Devgroup Stuttgart
Last wednesday I gave my first talk for INETA , since I joined the speaker’s bureau last june. I spoke on Linq and C# 3.0 for the .NET User Group Stuttgart in Germany. The powerpoint slides (as an Acrobat PDF version) and some demos that I used are included below. The talk covers the basics of... Read More...
16 juli 2006
C# 3.0 for mere mortals, part 4: Object and collection initializers
The fourth part in the C# 3.0 series will cover both object and collection initializers. In the previous part we have already seen a glimpse of object initialization. Take this simple class: public class Blog { public string Title; private int _postCount; public int PostCount { get { return _postCount;... Read More...
Filed under: ,
11 juli 2006
The XML schema's for DLinq
Tonight I browsed some more through the documentation of DLinq (I’ll refer to Linq to SQL this way, because it is shorter and until the namespace is changed from System.Data.DLinq). In particular I looked at the document ‘DLinq Overview for C# Developers’. There is a section called... Read More...
14 juni 2006
C# 3.0 for mere mortals, part 3: Anonymous types
In the previous part on C# 3.0 we talked about implicit typing and how you sometimes do not know the exact type that is returned from an expression. The feature of anonymous types is a powerful addition to the type system of the CLR. It can also be a scary one. No longer will you be able to have control... Read More...
Filed under: ,
28 maart 2006
C# 3.0 for mere mortals, part 2: Implicit typing
Forget all you know about variables that are declared "var"! You probable know about var in JavaScript. Yes, you should forget that too. Microsoft took quite a chance by choosing the "var" keyword in C#. var has nothing to do with previous uses of the keyword. So, what is it for then? The C# 3.0 compiler... Read More...
Filed under: ,
26 maart 2006
C# 3.0 for mere mortals, part 1: Extension methods
Pick a .NET class, any class. Take a class from the .NET Framework. Is there any method that you think is missing from that class? Let's say you picked the ArrayList. Too bad it does not have a Concat method, that will take the ToString() of every object in the ArrayList and concatenate it to one big... Read More...
Filed under: ,
26 maart 2006
The road to Linq: C# 3.0 for mere mortals, part 0
It's not the easiest of documents to read: the C# 3.0 specification . On my recent endeavours with Linq and DLinq in particular, I read through it. Most of what is new in C# 3.0 is there to make the Language Integrated Queries possible. The spec is very technical, so I thought I would break it down into... Read More...
Filed under: ,