Example #1
0
 public SortedSet(Compare compare, Array items, bool alreadySorted)
 {
     if (compare == null)
         throw new Exception("compare must be provided");
     _compare = compare;
     _items = items ?? new Array();
     if (!alreadySorted)
         _items.Sort((CompareCallback)(object)_compare);
 }