Is there a way for me to include a simple array of strings, or List
I know that the question has been answered long time ago... but in my 'ConfigurationElement' classes, for string collection, I usually do the following:
[ConfigurationProperty("myStringCollectionProperty", DefaultValue = "")]
[TypeConverter(typeof(CommaDelimitedStringCollectionConverter))]
public StringCollection MyStringCollectionProperty
{
get { return (StringCollection)this["myStringCollectionProperty"]; }
set { this["myStringCollectionProperty"] = value; }
}
And you can get a string list from this property with
List myStrings = config.MyStringCollectionProperty.Cast.ToList()