Apq.Cfg.Internal.KeyPathParser.Combine.md 3.0 KB

Apq.Cfg

Apq.Cfg.Internal.KeyPathParser

KeyPathParser.Combine Method

Overloads
Combine(string, string) 组合两个键路径(字符串版本,用于常见场景)
Combine(ReadOnlySpan<char>, ReadOnlySpan<char>) 组合两个键路径(避免不必要的分配)

KeyPathParser.Combine(string, string) Method

组合两个键路径(字符串版本,用于常见场景)

public static string Combine(string? parent, string child);

Parameters

parent System.String

父路径

child System.String

子键

Returns

System.String
组合后的完整键

KeyPathParser.Combine(ReadOnlySpan<char>, ReadOnlySpan<char>) Method

组合两个键路径(避免不必要的分配)

public static string Combine(System.ReadOnlySpan<char> parent, System.ReadOnlySpan<char> child);

Parameters

parent System.ReadOnlySpan<System.Char>

父路径

child System.ReadOnlySpan<System.Char>

子键

Returns

System.String
组合后的完整键