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