TryParse(ReadOnlySpan<char>, IFormatProvider?, MessageId)
static
public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out MessageId result)Tries to parse a span of characters into a value.
Parameters
sReadOnlySpan<char>- The span of characters to parse.
providerIFormatProvider?- An object that provides culture-specific formatting information about
s. resultMessageId- When this method returns, contains the result of successfully parsing
s, or an undefined value on failure.
Returns
true if s was successfully parsed; otherwise, false.