Skip to content

HierarchicalKey.Create(ReadOnlySpan<string>)

Create(ReadOnlySpan<string>)

static
View source
public static HierarchicalKey Create(params ReadOnlySpan<string> values)
Creates a hierarchy from literal segments in root-first order.

Parameters

valuesReadOnlySpan<string>
The nonempty literal segments.

Returns

A flat canonical identity which owns its immutable backing string.

Exceptions

System.ArgumentNullException
A segment is null.
System.ArgumentException
The input or a segment is empty, or a segment contains an unpaired surrogate.