I've modified my Settings.settings file in order to have system_Filters
be a System.String[]
.
I would like to populate this variable within the Visual Studio designer and not from within the code. I can get it to work within the code using the following:
Properties.Settings.Default.system_Filters = new string[] { "a", "b", "c" };
string _systemFilters = Properties.Settings.Default.system_Filters;
This works correctly. However, I don't have a nice place to put this in my code and ideally want to type it in the Settings.setting file. This value will not be modified. I've tried almost every variant I can think of, but the result is always the same.
Does anyone know the correct syntax? I'm also open to using a StringCollection
if that's easier.
string
containing C# code of array initialization "new string[] { .... }" tostring[]
. – Calix