Beispiel #1
0
 public ExtendedSortedSet(IEnumerable <T> collection, IComparer <T> comparer = null, IEqualityComparer <T> equalityComparer = null)
 {
     this.comparer = new WrappedComparer(comparer, equalityComparer)
     {
         insertMode = InsertMode.OldFirst,
     };
     sortedSet = new SortedSet <T>(
         collection != null ?
         new WrappedEnumereable(this.comparer, collection) as IEnumerable <T> :
         EmptyCollection <T> .Default, this.comparer);
 }
Beispiel #2
0
 public WrappedEnumerator(WrappedComparer wrappedComparer, IEnumerator <T> baseEnumerator)
 {
     this.wrappedComparer = wrappedComparer;
     this.baseEnumerator  = baseEnumerator;
 }
Beispiel #3
0
 public WrappedEnumereable(WrappedComparer wrappedComparer, IEnumerable <T> baseEnumerable)
 {
     this.wrappedComparer = wrappedComparer;
     this.baseEnumerable  = baseEnumerable;
 }