Quantcast
Channel: FlexiCoder Blog » .Net code
Viewing all articles
Browse latest Browse all 10

Sort Collection

$
0
0

Here is a simple solution based on this article to implement a sort of a generic collection.

public ContentCollection Sort()
{
    List items = (List)Items;
    items.Sort();
    return this;
}

The Content class needs to implement IComparable


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles



Latest Images