<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0-preview.3.24172.9" />

CommaDelimitedStringCollection

Represents a collection of string elements separated by commas. This class cannot be inherited.
public bool IsModified { get; }

Gets a value that specifies whether the collection has been modified.

public bool IsReadOnly { get; }

Gets a value indicating whether the collection object is read-only.

public string this[int index] { get; set; }

Gets or sets a string element in the collection based on the index.

Creates a new instance of the CommaDelimitedStringCollection class.

public void Add(string value)

Adds a string to the comma-delimited collection.

public void AddRange(string[] range)

Adds all the strings in a string array to the collection.

public void Clear()

Clears the collection.

Creates a copy of the collection.

public void Insert(int index, string value)

Adds a string element to the collection at the specified index.

public void Remove(string value)

Removes a string element from the collection.

public void SetReadOnly()

Sets the collection object to read-only.