Class SHJoinPairs
- Namespace
- SunamoStringJoinPairs
- Assembly
- SunamoStringJoinPairs.dll
Provides methods for joining string pairs with configurable delimiters.
public class SHJoinPairs
- Inheritance
-
SHJoinPairs
- Inherited Members
- Extension Methods
Methods
JoinPairs(string, string, params string[])
Joins string pairs using specified delimiters. Elements are paired sequentially: first element gets the first delimiter appended, second element gets the second delimiter appended, and so on.
public static string JoinPairs(string firstDelimiter, string secondDelimiter, params string[] parts)
Parameters
firstDelimiterstringThe delimiter appended after the first element of each pair.
secondDelimiterstringThe delimiter appended after the second element of each pair.
partsstring[]An even number of strings to be joined as pairs.
Returns
- string
A string with all pairs joined using the specified delimiters.
JoinPairs(params string[])
Joins string pairs using semicolons as both delimiters. Elements are paired sequentially: first with second, third with fourth, etc.
public static string JoinPairs(params string[] parts)
Parameters
partsstring[]An even number of strings to be joined as pairs.
Returns
- string
A string with all pairs joined using semicolons.