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

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

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