LanguageSettingsDynamicResourceManagersResXResourcesDir Property

Gets or sets the path of the .resx resource files for the DynamicResourceManager instances of the current application domain when their UseLanguageSettings is . If , then even the centralized DynamicResourceManager instances may use individual path settings.
Default value:

Definition

Namespace: KGySoft
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.0.0
C#
public static string? DynamicResourceManagersResXResourcesDir { get; set; }

Property Value

String

Remarks

Due to compatibility reasons the .resx resources path can be handled individually for all DynamicResourceManager instances, even if their UseLanguageSettings is . To opt-in using a centralized path, set this property to a non- value.

Setting this property to a non- value overwrites the ResXResourcesDir property of all centralized DynamicResourceManager instances so setting it to again will not make them switch back to their previous value.

  Note

Changing this property does not trigger any auto save or release operation. To save the possible changes regarding to the original path you need to call the SavePendingResources method before changing this property. After changing this property it is recommended to call the ReleaseAllResources method to drop all possibly loaded/created resources that are related to the original path.

See Also