static private GetUlong ( string str ) : ulong | ||
str | string | |
return | ulong |
static ulong GetUlong (string str)
{
try {
if (str [0] == '-')
return (ulong)long.Parse (str);
return ulong.Parse (str);
} catch (Exception e) {
LoggingService.LogError ("Error while converting " + str + " to a number.", e);
return 0;
}
}