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

GetInt32() public method

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