Skip to content

HierarchicalKey.TryParse(ReadOnlySpan<char>, IFormatProvider?, HierarchicalKey)

TryParse(ReadOnlySpan<char>, IFormatProvider?, HierarchicalKey)

static
View source
public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out HierarchicalKey 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.
resultHierarchicalKey
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.