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); }
public static bool TryParse(ReadOnlySpan <char> s, out uint result) { return(Number.TryParseUInt32IntegerStyle(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result) == Number.ParsingStatus.OK); }