System.Runtime.CompilerServices.ReadOnlyCollectionBuilder.Add C# (CSharp) Method

Add() public method

Adds an item to the ReadOnlyCollectionBuilder{T}.
public Add ( item ) : void
item The object to add to the .
return void
        public void Add(T item)
        {
            if (_size == _items.Length)
            {
                EnsureCapacity(_size + 1);
            }
            _items[_size++] = item;
            _version++;
        }