You use static members of the Convert class found in the System namespace to handle conversions in the .NET framework.
string s = '45';
int h = Convert.ToInt32(s);
double d = Convert.ToDouble(s);
You use static members of the Convert class found in the System namespace to handle conversions in the .NET framework.
string s = '45';
int h = Convert.ToInt32(s);
double d = Convert.ToDouble(s);
Share with