* [System] Add unit test for Xamarin-2315
* [System] Use temporary directory for saving settings files
This change modifies the ApplicationSettingsBaseTests so that they
store the settings files in a temporary directory. This reduces
the risk of failed tests because of stale files from previous test
run, or from a build that runs in parallel.
* [System] Improve Settings behavior (Xamarin-15818)
Improve behavior of ApplicationSettingsBase class to match Windows .NET
more closely.
* Implement Upgrade to allow Upgrading of settings
* Make SettingsPropertyValue serialization work for complex objects
* Make Save and Update throw in unimplemented configurations
* Changed Reload to clear PropertyValues so they are reloaded
and fire PropertyChanged event for all Properties
* Modified Reset to do what Reload used to do.
* Added a backup Type loading for custom SettingsProviders
* don't call SettingsSaving on Reset()
* [System] Fire SettingsSaving event (Xamarin-2315)
When calling ApplicationSettingsBase.Save() the SettingsSaving
event has to be fired.
* [System] Add unit tests for Xamarin-15818
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
There is no checkfor the SettingProviderAttribute attached to a Settings class.
.NET uses this to replace the default LocalSettingsProvider with your
own SettingsProvider.
The patch adds this feature.
Signed-off-by: Carsten Schlote <[email protected]>
* CustomizableFileSettingsProvider.cs: reset the property value
instead of using the DefaultValue.
* SettingsPropertyValue.cs: new Reset() method.
* ApplicationSettingsBase.cs: Reset happens in Reload().
Patch by Andrew Kurochka that fixes bug #532180.
svn path=/trunk/mcs/; revision=140950
* System/System.Configuration/CustomizableFileSettingsProvider.cs:
* System/System.Configuration/ApplicationSettingsBase.cs:
* System.Configuration/System.Configuration/ClientConfigurationSystem.cs:
* System.Configuration/System.Configuration/ConfigurationManager.cs:
Generate the same file name for the local settings file and properly
save the configuration to it. Not loading it yet.
svn path=/trunk/mcs/; revision=117573
* CustomizableFileSettingsProvider.cs: when reading application or
user settings, only read those settings appropriate for the context.
This avoids duplicate key errors when 2 different groups have a key
with the same name.
* ApplicationSettingsBase.cs: the context is a hashtable with several
values set upon creation: SettingsKey, GroupName and
SettingsClassType.
Fixes bug #432466.
svn path=/trunk/mcs/; revision=114853
* ApplicationSettingsBase.cs: honor the IsSynchronized value in the
Context, Properties, PropertyValues and Providers. All of them might
initialize an instance field for the class. Hopefully this fixes some
nullrefs.
svn path=/trunk/mcs/; revision=114842
* ApplicationSettingsBase.cs: If there is no explicit
SettingsSerializeAs attribute to specify the format, distinguish
between plain string and XML by checking if the TypeConverter for the
property type supports string conversions. If it doesn't then we are
present with XML.
[Fixes bug #414445]
svn path=/trunk/mcs/; revision=109706
* ConfigXmlDocument.cs : added explicit interface implementations.
* ApplicationSettingsBase.cs : split deeply-nested get_Properties()
into itself and a method. Treat default LocalFileSettingsProvider
as a (valid) settings provider. Removed a fixme (only public
members should be available).
* SettingsBase.cs : check lock state in Save().
* SettingsProviderCollection.cs : remove bogus table field which
conflicts with the table in base ProviderCollection class.
svn path=/trunk/mcs/; revision=78240
* ApplicationSettingsBase.cs : When we use default value, convert it
to proper type. Fixed bug #78654. Patch by Gareth Pearce.
* ApplicationSettingsBaseTest.cs : added test for bug #78654.
svn path=/trunk/mcs/; revision=62136
* ApplicationSettingsBase.cs (CacheValuesByProvider): emit
SettingsLoaded after we load the property values.
(set_Item[string]): fill in settingClass in the
SettingChangingEventArgs properly.
(get_Properties): don't depend on setting_attrs[0] being either
UserScoped- or ApplicationScopedSettingAttribute. Also, call
Initialize on any providers we create here.
* LocalFileSettingsProvider.cs (GetPropertyValues): add a naive
implementation, leave a MonoTODO.
(Initialize): fill in name properly, and deal with null values.
svn path=/trunk/mcs/; revision=60336
* SettingsProvider.cs, SettingsPropertyValueCollection.cs,
SettingValueElement.cs, SettingElement.cs,
SettingsPropertyValue.cs, ApplicationSettingsBase.cs,
SettingsPropertyCollection.cs, SettingsProviderCollection.cs,
SettingElementCollection.cs: Add XML_DEPS and CONFIGURATION_DEPS
to get this to bootstrap compile. What a pain.
svn path=/trunk/mcs/; revision=52586