Click here to Skip to main content
11,647,827 members (62,845 online)
Click here to Skip to main content
Alternatives (1)

Tagged as

SortedSet Linq Extension Method

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

Alternatives

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);}

License

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

Share

About the Author

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

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