ant = int.parse(dr[1].tostring());
TryParse
int ant; if (int.TryParse(dr[1], out ant) { // everything ok } else { // bad format -> take some corrective action! }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)