System.Data.Common.UInt16Storage.SetCapacity C# (CSharp) Method

SetCapacity() public method

public SetCapacity ( int capacity ) : void
capacity int
return void
        public override void SetCapacity(int capacity)
        {
            ushort[] newValues = new ushort[capacity];
            if (null != _values)
            {
                Array.Copy(_values, 0, newValues, 0, Math.Min(capacity, _values.Length));
            }
            _values = newValues;
            base.SetCapacity(capacity);
        }