Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

SortedSet Linq Extension Method

, 26 Oct 2010
Rate this:
Please Sign up or sign in to vote.
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);}
Since SortedSet has a constructor that takes an IEnumerable<T> parameter, the ToSortedSet extension method can be greatly simplified:
 
public static SortedSet<T> ToSortedSet<T>(this IEnumerable<T> t)
{
    return new SortedSet<T>(t);
}

License

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

About the Author

Matt T Heffron
Software Developer (Senior) AB Sciex
United States United States
I started programming in Basic on a DECSystem-10 as a Freshman at Caltech in 1974. I quickly transitioned to assembly language, Fortran, and Pascal. As a summer job at JPL, I did analysis of fuel consumption for the Viking Mars Orbiter attitude control system. I also spent a summer doing O/S maintenance at Digital Equipment Corporation.
After graduation, I started developing microprocessor development tools (e.g., cross-compiler, debugger) for Beckman Instruments, a scientific instrument company.
I've worked on custom file-systems, a real-time O/S for Z8000, Expert Systems (SpinPro & PepPro), and internal and external networking support (I was their first webmaster).
I've worked on the DNA analysis system.
I was the console/UI software architect for Ultracentrifuges and protein Capillary Electrophoresis systems.
After 35 years, Danaher having acquired Beckman (now Beckman Coulter), transferred the CE group to become part of AB Sciex (2014).

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 26 Oct 2010
Article Copyright 2010 by Matt T Heffron
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid