I\'d like to store a one dimensional string array as an entry in my appSettings
. I can\'t simply separate elements with ,
or |
because
For integers I found the following way quicker.
First of all create a appSettings key with integer values separated by commas in your app.config.
Then split and convert the values into int array by using LINQ
int[] myIntArray = ConfigurationManager.AppSettings["myIntArray"].Split(',').Select(n => Convert.ToInt32(n)).ToArray();