ResXResourceManager(String, CultureInfo) Constructor

Initializes a new instance of the ResXResourceManager class that looks up resources in resource XML files based on the provided baseName.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public ResXResourceManager(
	string baseName,
	CultureInfo? neutralResourcesLanguage = null
)

Parameters

baseName  String
A base name that is the prefix of the resource files. For example, the prefix for the resource file named Resource1.en-US.resx is Resource1.
neutralResourcesLanguage  CultureInfo  (Optional)
Determines the language of the neutral resources. When , it will be determined by the entry assembly, or if that is not available, then by the assembly of the caller's method. This parameter is optional.
Default value: .

Remarks

The ResXResourceManager looks up resources in baseName.cultureName.resx files, where baseName.resx contains the resource set of the ultimate fallback culture (also known as default or invariant or neutral resources culture).

If neutralResourcesLanguage is , then the default culture is auto detected by the current application's NeutralResourcesLanguageAttribute. If it is not defined, then CultureInfo.InvariantCulture will be used as default culture.

See Also