Microsoft.Isam.Esent.Interop.Vista.JET_OPENTEMPORARYTABLE.CheckDataSize C# (CSharp) Method

CheckDataSize() private method

Make sure the data and count members are the correct size.
private CheckDataSize ( ) : void
return void
        private void CheckDataSize()
        {
            if (null == this.prgcolumndef)
            {
                throw new ArgumentNullException("prgcolumndef");
            }

            if (null == this.prgcolumnid)
            {
                throw new ArgumentNullException("prgcolumnid");
            }

            if (this.ccolumn < 0)
            {
                throw new ArgumentOutOfRangeException("ccolumn", this.ccolumn, "cannot be negative");
            }

            if (this.ccolumn > this.prgcolumndef.Length)
            {
                throw new ArgumentOutOfRangeException("ccolumn", this.ccolumn, "cannot be greater than prgcolumndef.Length");
            }

            if (this.ccolumn > this.prgcolumnid.Length)
            {
                throw new ArgumentOutOfRangeException("ccolumn", this.ccolumn, "cannot be greater than prgcolumndef.Length");
            }
        }