Skip to content

HierarchicalKey.TryParse(string?, IFormatProvider?, HierarchicalKey)

TryParse(string?, IFormatProvider?, HierarchicalKey)

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