How about this:
To Save:To Save:
Settings.Default.blEnabled = string.Join(",", blenabled.Select(x=>x?"1":"0"));
To Load:To Load:
if(!string.IsNullOrWhitespace(Settings.Default.blEnabled))
blenabled = Settings.Default.blEnabled
.Split(',')
.Select(x=>Convert.ToBoolean(int.Parse(x)))
.ToList();
Is there some requirement that you save them as integers? It could be further simplified by just using bool.ToString()bool.ToString()
and bool.Parse()bool.Parse()
...