/// <summary> /// Initializes a new instance of the /// <see cref="SortedDictionaryEnumerator" /> class. /// </summary> public SortedDictionaryEnumerator(SortedDictionary dict, EnumeratorMode mode) { m_dict = dict; m_enumerator = dict.GetBaseEnumerator(); m_mode = mode; }
public Enumerator(SortedList host, EnumeratorMode mode) { this.host = host; stamp = host.modificationCount; size = host.Count; this.mode = mode; Reset(); }
public Enumerator(Hashtable host, EnumeratorMode mode) { this.host = host; stamp = host.modificationCount; size = host.table.Length; this.mode = mode; Reset(); }
public DictionaryEnumerator([NotNull] SortedList <TKey, TValue> host, EnumeratorMode mode) { this.host = host; stamp = host.modificationCount; size = host.Count; this.mode = mode; Reset(); }
public Enumerator(MonoSortedList<TKey, TValue> host, EnumeratorMode mode) { this.host = host; stamp = host.modificationCount; size = host.Count; this.mode = mode; Reset(); }
private void CopyToArray(Array arr, int i, EnumeratorMode mode) { IEnumerator it = new Enumerator(this, mode); while (it.MoveNext()) { arr.SetValue(it.Current, i++); } }
private void CopyToArray([NotNull] Array arr, int i, EnumeratorMode mode) { if (arr == null) throw new ArgumentNullException(nameof(arr)); if (i < 0 || i + this.Count > arr.Length) throw new ArgumentOutOfRangeException(nameof(i)); IEnumerator it = new DictionaryEnumerator(this, mode); while (it.MoveNext()) { arr.SetValue(it.Current, i++); } }
private void CopyToArray(Array arr, int i, EnumeratorMode mode) { if (arr == null) { throw new ArgumentNullException("arr"); } if (i < 0 || i + Count > arr.Length) { throw new ArgumentOutOfRangeException("i"); } IEnumerator it = new Enumerator(this, mode); while (it.MoveNext()) { arr.SetValue(it.Current, i++); } }
public Enumerator (SortedList host, EnumeratorMode mode) { this.host = host; stamp = host.modificationCount; size = host.Count; this.mode = mode; Reset (); }
private void CopyToArray (Array arr, int i, EnumeratorMode mode) { if (arr == null) throw new ArgumentNullException ("arr"); if (i < 0 || i + this.Count > arr.Length) throw new ArgumentOutOfRangeException ("i"); IEnumerator it = new Enumerator (this, mode); while (it.MoveNext ()) { arr.SetValue (it.Current, i++); } }
public Enumerator (Hashtable host, EnumeratorMode mode) { this.host = host; stamp = host.modificationCount; size = host.table.Length; this.mode = mode; Reset (); }
private void CopyToArray (Array arr, int i, EnumeratorMode mode) { IEnumerator it = new Enumerator (this, mode); while (it.MoveNext ()) { arr.SetValue (it.Current, i++); } }