AGENT.Contrib.Util.Parse.TryParseULong C# (CSharp) Метод

TryParseULong() публичный статический Метод

Attempt to parse the provided string value.
public static TryParseULong ( string s, ulong &i ) : bool
s string String value to be parsed
i ulong Variable to set successfully parsed value to
Результат bool
        public static bool TryParseULong(string s, out ulong i)
        {
            i = 0;
            try
            {
                i = ulong.Parse(s);
                return true;
            }
            catch
            {
                return false;
            }
        }