New to C# here, and I’m trying to store a string in a Setting.
Heres what I have:
string test = "Setting to save!";
Properties.Settings.Default.testSetting = test;
Properties.Settings.Default.Save();
However I get this error:
Error 1 Cannot implicitly convert type ‘string’ to ‘System.Collections.Specialized.StringCollection’
Thanks.
Properties.Settings.Default.testSettingis most likely aStringCollectionCheck the IDE for settings and see if you chose the wrong type.