LanguageSettingsReleaseAllResources Method

Ensures that DynamicResourceManager instances with centralized settings release all loaded resource sets without saving. 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 ReleaseAllResources()

Remarks

This method forces all DynamicResourceManager instances with centralized settings to drop all currently loaded resource sets.

It can be useful if we saved new .resx files and we want to ensure that all centralized DynamicResourceManager instances reload or regenerate the resource sets when they attempt to access a resource for the next time.

  Note

When calling this method all possible unsaved resource changes will be lost.

See Also