Click here to Skip to main content
11,924,487 members (54,765 online)
Click here to Skip to main content
Alternatives (1)
Add your own
alternative version

Tagged as


4 bookmarked

SortedSet Linq Extension Method

, 25 Aug 2010 CPOL
This simple extension method allows you to create a SortedSet from a Linq query


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

26 Oct 2010
Matt T Heffron
Since SortedSet has a constructor that takes an IEnumerable parameter, the ToSortedSet extension method can be greatly simplified:public static SortedSet ToSortedSet(this IEnumerable t){ return new SortedSet(t);}


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Kevin Marois
President Marois Consulting
United States United States
No Biography provided

| | Privacy | Terms of Use | Mobile
Web01 | 2.8.151125.3 | Last Updated 25 Aug 2010
Article Copyright 2010 by Kevin Marois
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid