LanguageSettingsSavePendingResources Method

Ensures that DynamicResourceManager instances with centralized settings save all pending changes. This method affects all DynamicResourceManager instances in the current application domain, whose UseLanguageSettings is .

Definition

Namespace: KGySoft
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0-rc.1
C#
public static void SavePendingResources(
	bool compatibleFormat = false
)

Parameters

compatibleFormat  Boolean  (Optional)
If set to , the result .resx files can be read by a System.Resources.ResXResourceReader instance and the Visual Studio Resource Editor. If set to , the result .resx files are often shorter, and the values can be deserialized with better accuracy (see the remarks at ResXResourceWriter), but the result can be read only by the ResXResourceReader class. This parameter is optional.
Default value: .

Remarks

This method forces all DynamicResourceManager instances with centralized settings to save possibly changed or generated resources independently from the value of the DynamicResourceManagersAutoSave property.

If this method is called right after the EnsureResourcesGenerated method, then we can ensure that resource files are generated for the currently set DisplayLanguage.

See Also