Exemplo n.º 1
0
        /* 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>();
        }
Exemplo n.º 2
0
 public NoGcList <T> MemSet(int count)
 {
     this       = new NoGcList <T>(count);
     this.Count = count;
     return(this);
 }