public void ReadOnly_Clear () { SettingsPropertyValueCollection col = new SettingsPropertyValueCollection (); SettingsProperty test_prop = new SettingsProperty ("test_prop"); SettingsPropertyValue val = new SettingsPropertyValue (test_prop); col.Add (val); col.SetReadOnly (); col.Clear (); }