March 2010 - Posts

2
Comments

Understanding LINQ to SQL (2) IQueryable<T> by Dixin

[ LINQ via C# series ] The core of LINQ to Objects is IEnumerable<T>: Query methods are designed for IEnumerable<T> as extension methods , like Where(), Select(), etc.; Query methods are designed to be fluent, LINQ to Objects queries can be...
2
Comments

Understanding LINQ to SQL (1) Object-Relational Mapping by Dixin

[ LINQ via C# series ] According to Wikipedia , Object-relational mapping is: a programming technique for converting data between incompatible type systems in relational databases and object-oriented programming languages. This is the LINQ to SQL sample...
0
Comments

Naming in Visual Studio 2010 advertisement by Dixin

A great advertisement for Visual Studio 2010 has been released. Click here to download. In this video, it looks like the boy is coding a WinForm application with C#: Are these Hungary notations ?
Filed under: , ,
0
Comments

Understanding LINQ to Objects (8) The Design Of IEnumerable<T> by Dixin

[ LINQ via C# series ] Currently in .NET, iterator pattern is implemented via IEnumerable<T> and IEnumerator<T> (or IEnumerable and IEnumerator): namespace System.Collections { // Represents a collection which can be iterated. public interface...
3
Comments

Understanding LINQ to Objects (7) Query Methods Internals by Dixin

[ LINQ via C# series ] This post explains how are the LINQ to Objects standard query methods implemented. Once again, it will be exhibited that iterator pattern is the core pattern of LINQ to Objects query. The first thing need to emphasize is, not all...
0
Comments

Understanding LINQ to Objects (6) Deferred Execution by Dixin

[ LINQ via C# series ] One post at the beginning of this series mentioned that deferred execution is a important advancement of LINQ. The following code show how is the execution deferred: IEnumerable < int > source = Enumerable .Range(-2, 5); ...
2
Comments

Understanding LINQ to Objects (5) Implementing Iterator by Dixin

[ LINQ via C# series ] Iterator pattern is the core pattern of LINQ to Objects implementation. To filter, order, or project the data items of a data collection, of course the code need to go through the collection and figure out the results. The previous...
0
Comments

Understanding LINQ to Objects (4) Iterator Pattern by Dixin

[ LINQ via C# series ] According to Wikipedia : Iterator pattern is a design pattern in which iterators are used to access the elements of an aggregate object sequentially without exposing its underlying representation. An Iterator object encapsulates...
1
Comments

Understanding LINQ to Objects (3) Query Methods by Dixin

[ LINQ via C# series ] After understanding the programming paradigm and why LINQ query methods can be chaining , this post shows the details of LINQ query methods. Methods like Where(), OrderBy(), OrderByDescending(), and Select() are exhibited again...
2
Comments

The protocol of AJAX by Dixin

This is a true story. This morning I went to office by train of Beijing subway, and 4 developers were sitting next to me and talking about Web development and their Web product. After a while, someone asked an interesting question: What is the protocol...
Filed under: , ,
More Posts Next page »