WebApplications.Testing.Data.ObjectRecord.GetFloat C# (CSharp) 메소드

GetFloat() 공개 메소드

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