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