Table of Contents

Class StringList

Namespace
ArcanaDevelopment.adTempus.Client.Collections
Assembly
ArcanaDevelopment.adTempus.Client.dll

A list of strings

public class StringList : Collection<string>
Inheritance
object
Collection<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

NameTypeDescription
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

NameTypeDescription
source string

The source string to add from. Must contain a list of values, separated by any of the delimiters

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 source

GetDelimitedList(char)

Returns the list as a single string with items separated by delimiter

public string GetDelimitedList(char delimiter)

Parameters

NameTypeDescription
delimiter char

Returns

string

Extension Methods