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

GetDouble() public method

public GetDouble ( int i ) : double
i int
return double
        public double GetDouble(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 double))
                throw new InvalidCastException();
            return (double)o;
        }