#### [Apq\.Cfg](index.md 'index') ### [Apq\.Cfg\.Internal](Apq.Cfg.Internal.md 'Apq\.Cfg\.Internal').[KeyPathParser](Apq.Cfg.Internal.KeyPathParser.md 'Apq\.Cfg\.Internal\.KeyPathParser') ## KeyPathParser\.Combine Method | Overloads | | | :--- | :--- | | [Combine\(string, string\)](Apq.Cfg.Internal.KeyPathParser.Combine.md#Apq.Cfg.Internal.KeyPathParser.Combine(string,string) 'Apq\.Cfg\.Internal\.KeyPathParser\.Combine\(string, string\)') | 组合两个键路径(字符串版本,用于常见场景) | | [Combine\(ReadOnlySpan<char>, ReadOnlySpan<char>\)](Apq.Cfg.Internal.KeyPathParser.Combine.md#Apq.Cfg.Internal.KeyPathParser.Combine(System.ReadOnlySpan_char_,System.ReadOnlySpan_char_) 'Apq\.Cfg\.Internal\.KeyPathParser\.Combine\(System\.ReadOnlySpan\, System\.ReadOnlySpan\\)') | 组合两个键路径(避免不必要的分配) | ## KeyPathParser\.Combine\(string, string\) Method 组合两个键路径(字符串版本,用于常见场景) ```csharp public static string Combine(string? parent, string child); ``` #### Parameters `parent` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') 父路径 `child` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') 子键 #### Returns [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') 组合后的完整键 ## KeyPathParser\.Combine\(ReadOnlySpan\, ReadOnlySpan\\) Method 组合两个键路径(避免不必要的分配) ```csharp public static string Combine(System.ReadOnlySpan parent, System.ReadOnlySpan child); ``` #### Parameters `parent` [System\.ReadOnlySpan<](https://learn.microsoft.com/en-us/dotnet/api/system.readonlyspan-1 'System\.ReadOnlySpan\`1')[System\.Char](https://learn.microsoft.com/en-us/dotnet/api/system.char 'System\.Char')[>](https://learn.microsoft.com/en-us/dotnet/api/system.readonlyspan-1 'System\.ReadOnlySpan\`1') 父路径 `child` [System\.ReadOnlySpan<](https://learn.microsoft.com/en-us/dotnet/api/system.readonlyspan-1 'System\.ReadOnlySpan\`1')[System\.Char](https://learn.microsoft.com/en-us/dotnet/api/system.char 'System\.Char')[>](https://learn.microsoft.com/en-us/dotnet/api/system.readonlyspan-1 'System\.ReadOnlySpan\`1') 子键 #### Returns [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') 组合后的完整键