internal static SqlBuffer[] CreateBufferArray(int length) { SqlBuffer[] buffers = new SqlBuffer[length]; for (int i = 0; i < buffers.Length; ++i) { buffers[i] = new SqlBuffer(); } return(buffers); }
internal static SqlBuffer[] CloneBufferArray(SqlBuffer[] values) { SqlBuffer[] copy = new SqlBuffer[values.Length]; for (int i = 0; i < values.Length; i++) { copy[i] = new SqlBuffer(values[i]); } return(copy); }
private SqlBuffer(SqlBuffer value) // Clone // value types { _isNull = value._isNull; _type = value._type; // ref types - should also be read only unless at some point we allow this data // to be mutable, then we will need to copy _value = value._value; _object = value._object; }