StringCollection changes on Settings.Default.Reload()
- by Ask
In my app Settings.Default.test is a StringCollection. I don't understand why this code
StringCollection col = new StringCollection();
col.Add("1\r\n2\r\n");
Settings.Default.test = col;
Settings.Default.Save();
Settings.Default.Reload();
Changes my text 1\r\n2\r\n to 1\n2\n on Reload.
Is it default behavior or what?
How to restore multiline text in my textbox on restart of my application?