Beispiel #1
0
        public static bool TryParse([NotNullWhen(true)] string?s, out uint result)
        {
            if (s == null)
            {
                result = 0;
                return(false);
            }

            return(Number.TryParseUInt32IntegerStyle(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result) == Number.ParsingStatus.OK);
        }
Beispiel #2
0
 public static bool TryParse(ReadOnlySpan <char> s, out uint result)
 {
     return(Number.TryParseUInt32IntegerStyle(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result) == Number.ParsingStatus.OK);
 }