WebApplications.Testing.Data.ObjectRecord.GetBoolean C# (CSharp) Method

GetBoolean() public method

public GetBoolean ( int i ) : bool
i int
return bool
        public bool GetBoolean(int i)
        {
            if ((i < 0) ||
                (i > FieldCount))
                throw new IndexOutOfRangeException(i.ToString(CultureInfo.InvariantCulture));
            object o = _columnValues[i];
            if (o == null)
                throw new SqlNullValueException();
            if (!(o is bool))
                throw new InvalidCastException();
            return (bool)o;
        }