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

GetByte() public method

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