public SortedList(int capacity, ISortedListComparer <T> comparer)
        {
            this.capacity = capacity / 2;
            this.comparer = comparer;

            totalLength = 0;
            free        = 0;
            locker      = new ValueLock();
            catalog     = new SortedTreeNode[this.capacity];

            CreateNode(0, 0, 0, 0);
        }
Exemple #2
0
 public SortedListSafe(ISortedListComparer <T> comp)
 {
     list = new SortedList <T>(comp);
 }
 public SortedList(ISortedListComparer <T> comparer) : this(1024, comparer)
 {
 }
Exemple #4
0
 public SortedDataListSafe(ISortedListComparer <T> comp, Table <T> table)
 {
     this.table = table;
     list       = new SortedList <T>(comp);
 }