System.Collections.Generic.List.AddWithResize(T)

Here are the examples of the csharp api System.Collections.Generic.List.AddWithResize(T) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : List.cs
License : MIT License
Project Creator : dotnetGame

[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public void Add(T item)
        {
            _version++;
            T[] array = _items;
            int size = _size;
            if ((uint)size < (uint)array.Length)
            {
                _size = size + 1;
                array[size] = item;
            }
            else
            {
                AddWithResize(item);
            }
        }