Class StringList
- Namespace
- ArcanaDevelopment.adTempus.Client.Collections
- Assembly
- ArcanaDevelopment.adTempus.Client.dll
A list of strings
public class StringList : Collection<string>
- Inheritance
-
objectCollection<string>StringList
Constructors
StringList()
public StringList()
StringList(string, params char[])
Initializes the collection from a delimited list.
public StringList(string source, params char[] delimiters)
Parameters
| Name | Type | Description |
|---|---|---|
source |
string | The string to split into a list |
delimiters |
char[] | The delimiters to split on |
Methods
AddFromDelimitedList(string, bool, params char[])
Adds entries from a delimited list
public void AddFromDelimitedList(string source, bool clearFirst, params char[] delimiters)
Parameters
| Name | Type | Description |
|---|---|---|
source |
string | The source string to add from. Must contain a list of values, separated by any of the |
clearFirst |
bool | If true the collection is cleared before the new items are added. If false the new items are added to the existing collection. |
delimiters |
char[] | The delimiters used to separate values in |
GetDelimitedList(char)
Returns the list as a single string with items separated by delimiter
public string GetDelimitedList(char delimiter)
Parameters
| Name | Type | Description |
|---|---|---|
delimiter |
char |
Returns
- string