November 2009 - Posts

1
Comments

Understanding C# 3.0 Features (6) Lambda Expression by Dixin

[ LINQ via C# series ] Lambda expression is another powerful syntactic sugar making C# functional. In this post, “Lambda expression” simply means “C# Lambda expression”. The native concept of lambda expression will be introduced in the later lambda calculus...
1
Comments

Understanding C# 3.0 Features (5) Extension Method by Dixin

[ LINQ via C# series ] Extension method is a fancy and powerful syntactic sugar in C# 3.0. Extension methods are very important when writing functional style C# code. Define an extension method for a class When we define an extension method for a type...
0
Comments

Understanding C# 3.0 Features (4) Anonymous Type by Dixin

[ LINQ via C# series ] This feature provides a way to create an instance without declare the type: var mark = new { Name = "Mark" , Age = 18 }; Since the type name is unknown at this time when writing code, this is called a anonymous type. Compilation...
0
Comments

Understanding C# 3.0 Features (3) Type Inference by Dixin

[ LINQ via C# series ] The “var” keyword has been introduced from the beginning . It is a new language feature called type inference in C# 3.0. Local variable type inference Consider the local variable declaration and initialization: TypeName a = b; Since...
2
Comments

Understanding C# 3.0 Features (2) Object Initializer And Collection Initializer by Dixin

[ LINQ via C# series ] Take this Person type as an example: public class Person { public string Name { get ; set ; } public int Age { get ; set ; } } Object initializer In C# 2.0 we create an Person instance and initialize it like this: Person person...
0
Comments

Understanding C# 3.0 Features (1) Automatic Property by Dixin

[ LINQ via C# series ] As the fundamental of LINQ, This chapter will explain the new language features of C# 3.0, all of which are syntactic sugars. This part is about the automatic property. In C# 2.0 a property can be declared like this: public class...
0
Comments

Introducing LINQ (3) Infrastructure by Dixin

[ LINQ via C# series ] This image shows the infrastructure of LINQ : FCL and LINQ providers As mentioned in part 2, LINQ is independent to data source. The concrete functionalities of querying a .NET array, or querying a table in SQL Server database,...
Filed under: , ,
3
Comments

Introducing LINQ (2) Advancements Overview by Dixin

[ LINQ via C# series ] According to MSDN : LINQ is one of Microsoft’s most exciting, powerful new development technologies. Independent to data source This sample mentioned in part 1 is working on items in a .NET array: var results = from number in source...
3
Comments

Introducing LINQ (1) What Is LINQ by Dixin

[ LINQ via C# series ] This LINQ series is from my 10 parts of LINQ via C# talks . And the poster designs for the events are here . What is LINQ Here is the roadmap of .NET and C#: Date .NET Framework CLR C# IDE Introduced Features February 13th, 2002...
0
Comments

Mac OSX Turns Dual Core Laptop into Solo Core by Dixin

This is blogged because it is surprising. Some months ago my friend and me were investigating Mac OSX for my WebOS , so we installed the latest version on a machine, SAMSUNG R25 XE04 with a T2330 Dual Core CPU. After that, Windows 7 was installed back...
Filed under: , ,
More Posts