April 2008 - Posts

1
Comments

ThenByDescending Operator Part 16 by zhirani

ThenByDescending is one of the query operators available in linq. You can use ThenByDescending operator with linq to objects,linq to xml and linq to SQL.ThenByDescending operator is used when you want to sort by more than 1 column or property. You initially...
1
Comments

OrderByDescending Operator Part 15 by zhirani

OrderByDescending is one of the ordering query operators available in linq.You can use OrderByDescending operator with linq to objects, linq to XML and linq to SQL. OrderByDescending operator can be used in method or dot syntax as well as query syntax...
0
Comments

ThenBy Operator Part 14 by zhirani

ThenBy is one of the ordering query operators available in linq. You can use ThenBy operator with linq to objects, linq to XML and linq to SQL. You will typically use ThenBy operator to do secondary sort. ThenBy operator is used to sort by more than 1...
1
Comments

OrderBy Operator Part 13 by zhirani

OrderBy is one of the ordering query operators available in linq. In terms of availability, you can use OrderBy query operator with linq to objects, linq to SQL and linq to XML. Unlike many query operators that are only available in method or dot syntax...
2
Comments

Union Operator Part 12 by zhirani

Union is one of the set query operators available in linq. It appends 2 input sequences together ensuring that duplicates are removed and returns a single output sequence. The prototype for union operator looks like this public static IEnumerable<T>...
2
Comments

Reverse Operator Part 11 by zhirani

Reverse is one of ordering query operator. Reverse operator simply returns the input sequence in the reverse order. It does not effect the elements in the input sequence in any way. The prototype of the reverse operator looks like this public static IEnumerable<T>...
0
Comments

SequenceEqual operator Part 10 by zhirani

Sequence operator determines if two sequences are equal to each other.Two collections are considered equal if they have the same number of elements with same values and in present in the same order. The prototype of Sequence looks like this public static...
2
Comments

Concat Operator Part 9 by zhirani

Concat is one of the set operators available in Linq. When you work with Linq query operators for sometime, you would notice that there are certain query operators that can all perform a certain job but some operators in certain scenario are easier to...
0
Comments

SkipWhile Operator Part 8 by zhirani

SkipWhile Operator skips elements based on the delegate condition. It continues to skip the elements as long as the predicate returns true. As soon as it encounters false statement, it returns rest of the elements. The prototype of the skip operator looks...
1
Comments

Skip Operator Part 7 by zhirani

Skip is one of the filtering operators available in linq. Skip operator skips the first count elements and returns rest of the elements in the collection. The prototype of the skip operator looks something like this public static IEnumerable<T>...
More Posts « Previous page - Next page »