Store String Array In appSettings?

You could use the AppSettings with a System.Collections.Specialized.StringCollection.

var myStringCollection = Properties.Settings.Default.MyCollection;
foreach (String value in myStringCollection)
{ 
    // do something
}

Each value is separated by a new line.

Here’s a screenshot (german IDE but it might be helpful anyway)

enter image description here

Leave a Comment