I have a class PropertyDetails
:
public class PropertyDetails
{
public int Sequence { get; set; }
public int Length { get; set; }
Don't ever use non-generic collections in C# when you can use generics instead. There are a lot of reasons to use generic collections only (except for very special cases).
See this question for more info: When would you not use Generic Collections?
So you can use List
(which I believe exposes a Sort()
method) or SortedList<,>
.