/* IEnumerator IEnumerable.GetEnumerator() * { * return GetEnumerator(); * } * public IEnumerator<T> GetEnumerator() * { * if (IsNull()) yield break; * for (int i = 0; i < Count; i++) * { * yield return _items[i]; * } * }*/ public void Dispose() { if (IsNull()) { return; } ArrayPool <T> .Pool.Return(_items); this = new NoGcList <T>(); }
public NoGcList <T> MemSet(int count) { this = new NoGcList <T>(count); this.Count = count; return(this); }