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

SetCapacity() public method

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