private long GetLongFromString(string text) { int Result; return int.TryParse(text, out Result) ? Result : -1; }