18 references to EnumerableHelpers
System.Collections (18)
System\Collections\Generic\LinkedList.cs (1)
292Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<T>() :
System\Collections\Generic\OrderedDictionary.cs (5)
1157Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<KeyValuePair<TKey, TValue>>() : 1588Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<TKey>() : 1649void IEnumerator.Reset() => EnumerableHelpers.Reset(ref _enumerator); 1733Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<TValue>() : 1893void IEnumerator.Reset() => EnumerableHelpers.Reset(ref _enumerator);
System\Collections\Generic\PriorityQueue.cs (2)
160_nodes = EnumerableHelpers.ToArray(items, out _size); 1062_queue.Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<(TElement Element, TPriority Priority)>() :
System\Collections\Generic\SortedDictionary.cs (3)
247Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<KeyValuePair<TKey, TValue>>() : 531Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<TKey>() : 692Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<TValue>() :
System\Collections\Generic\SortedList.cs (3)
548Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<KeyValuePair<TKey, TValue>>() : 1086Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<TKey>() : 1200Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<TValue>() :
System\Collections\Generic\SortedSet.cs (2)
104T[] elements = EnumerableHelpers.ToArray(collection, out count); 1131T[] elements = EnumerableHelpers.ToArray(other, out length);
System\Collections\Generic\Stack.cs (2)
54_array = EnumerableHelpers.ToArray(collection, out _size); 160Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<T>() :