MySql.Data.MySqlClient.MySqlDataReader.GetUInt16 C# (CSharp) Method

GetUInt16() public method

public GetUInt16 ( int column ) : UInt16
column int
return System.UInt16
    public UInt16 GetUInt16(int column)
    {
      IMySqlValue v = GetFieldValue(column, true);
      if (v is MySqlUInt16)
        return ((MySqlUInt16)v).Value;

      return (UInt16)ChangeType(v, column, typeof(UInt16));
    }

Same methods

MySqlDataReader::GetUInt16 ( string column ) : UInt16

Usage Example

Ejemplo n.º 1
0
 internal PlaniData(MySqlDataReader r)
 {
     StringBuilder sb = new StringBuilder();
     Gala = r.GetUInt16(0);
     Sys = r.GetUInt16(1);
     Pla = r.GetUInt16(2);
     Planityp = r.GetString(3);
     Objekttyp = r.GetString(4);
     Ownername = r.GetString(5);
     Ownerally = r.IsDBNull(6) ? "" : r.GetString(6);
     Planiname = r.GetString(7);
 }
All Usage Examples Of MySql.Data.MySqlClient.MySqlDataReader::GetUInt16