What Is New in C# 3.0 - Part 7 (LINQ Syntax)

   Here is the cherry of the cake, the reason for all the new features in C# 3.0, the purpose of human evolution and the reason Google created the Universe in the first place. LINQ (Language Integrated Query) is a set of C# language features for manipulating data. Long time ago Anders (Hallowed be his name) reasoned that as more and more applications interact with different data stores and manipulate large sets of data it would be really cool to make data manipulation a first class language feature. The most popular way for applications to interact with data are the databases but data comes in many more forms for example XML documents. So the first problem was to define what data is.

...
Posted by:   Stilgar
05:53 21.03.2008

What Is New in C# 3.0 - Part 6 (Expression Trees)

   After a long delay I am proud (well not really) to present part 6 of the “What Is New in C# 3.0” series. This is arguably the most difficult part of all but you only need to fully understand how expression trees work if you are going to develop LINQ data providers or similar frameworks. I personally am nowhere near to fully understanding how expression trees work but learning the principles they rely on will help you and me use them more effectively.

...
Posted by:   Stilgar
05:30 13.03.2008

What Is New in C# 3.0 - Part 5 (Lambda Expressions)

   I was about to start this article with theoretical explanation and historical background of lambda expressions but while I was searching for articles explaining some subtle details I came upon some very interesting comments. Some people were complaining that functional programming (mainly lambdas) are not natural to C# and they can confuse developers with no theoretical (i.e. university) background. Luckily the C# community (unlike the Java community) is very open-minded to new features and opinions are about 10:1 in favor of lambdas (if you take a look at discussions about new features in Java you will see that like 3:2 are against ANY changes in the language itself). So I decided to write the article with examples of how lambdas are actually simpler and easier even if you do not understand how they work internally...
Posted by:   Stilgar
03:29 24.02.2008

What Is New in C# 3.0 - Part 4 (Type Inference and Anonymous Types)

  Welcome to part 4 of the "What Is New in C# 3.0" series. Lets present two of the features that can make your code shorter and are essential to LINQ.

  You can often read about a feature of C# 3.0 called "the var keyword". That is pure bullshit and the feature is actually called "type inference" or "implicit typing"...
Posted by:   Stilgar
01:57 15.02.2008

What Is New in C# 3.0 - Part 3 (Extension Methods)

   Part 3 of the "What Is New in C# 3.0" series deals with extension methods. However before we proceed lets make a little trip through the history of methods as we know it just for the sake of our younger readers (namely Hristinka)...
Last edited by:   Stilgar
on   20:57 22.03.2008
Posted by:   Stilgar
04:02 10.02.2008
First Previous ... 11 12 13 14 15 Next Last