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

GetBoolean() public method

Gets the value of the specified column as a Boolean.
public GetBoolean ( int i ) : bool
i int
return bool
    public override bool GetBoolean(int i)
    {
      return Convert.ToBoolean(GetValue(i));
    }

Same methods

MySqlDataReader::GetBoolean ( string name ) : bool

Usage Example

Ejemplo n.º 1
0
 public override void Fill(MySql.Data.MySqlClient.MySqlDataReader dr)
 {
     _ID            = dr.GetInt32(db_ID);
     _Name          = dr.GetString(db_Name);
     _Abbreviation  = dr.GetString(db_Abbreviation);
     _RequiresRoom  = dr.GetBoolean(db_RequiresRoom);
     _RequiresDays  = dr.GetBoolean(db_RequiresDays);
     _RequiresTimes = dr.GetBoolean(db_RequiresTimes);
 }
All Usage Examples Of MySql.Data.MySqlClient.MySqlDataReader::GetBoolean