Table of Contents

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

list List<string>

The list of strings to concatenate.

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

list List<string>

The list of strings to convert. Returns "(null)" if null.

delimiter string

The delimiter to use between elements. Defaults to NewLine if null.

Returns

string

A string representation of the list.