Class SHGetString
- Namespace
- SunamoStringGetString
- Assembly
- SunamoStringGetString.dll
Provides helper methods for converting string collections into a single string.
public class SHGetString
- Inheritance
-
SHGetString
- Inherited Members
- Extension Methods
Methods
GetString(List<string>)
Concatenates all strings in the list into a single string without any delimiter.
public static string GetString(List<string> list)
Parameters
Returns
- string
A single concatenated string.
ListToString(List<string>?, string?)
Converts a list of strings into a single string representation, joining elements with the specified delimiter.
public static string ListToString(List<string>? list, string? delimiter = null)
Parameters
listList<string>The list of strings to convert. Returns "(null)" if null.
delimiterstringThe delimiter to use between elements. Defaults to NewLine if null.
Returns
- string
A string representation of the list.