S
steven
Hi
Anybody know why there's no TryParse method for a string type? I can
do the following when trying to convert an object to int:
object oTest = 1;
int iValue;
int.TryParse(oTest, iValue);
But there's no equivalent for string:
object oTest = 1;
string sValue;
string.TryParse(oTest, sValue); // method TryParse doesn't
exist so this won't compile //
Anybody know why there's no TryParse method for a string type? I can
do the following when trying to convert an object to int:
object oTest = 1;
int iValue;
int.TryParse(oTest, iValue);
But there's no equivalent for string:
object oTest = 1;
string sValue;
string.TryParse(oTest, sValue); // method TryParse doesn't
exist so this won't compile //