System.Data.AutoIncrementInt64.SetCurrentAndIncrement C# (CSharp) Method

SetCurrentAndIncrement() private method

private SetCurrentAndIncrement ( object value ) : void
value object
return void
        internal override void SetCurrentAndIncrement(object value)
        {
            Debug.Assert(null != value && DataColumn.IsAutoIncrementType(value.GetType()) && !(value is BigInteger), "unexpected value for autoincrement");
            long v = (long)SqlConvert.ChangeType2(value, StorageType.Int64, typeof(long), CultureInfo.InvariantCulture);
            if (BoundaryCheck(v))
            {
                _current = unchecked(v + _step);
            }
        }