compact framework - c# integer validation compactframework -
using .net compact framework 2.0, how can validate integer (int32.tryparse not supported on compact framework)?
what mean "validate"? mean parse without throwing?
static bool tryparse(string s, out int value) { try { value = int.parse(s); return true; } catch { value = 0; return false; } }
Comments
Post a Comment