ResXResourceManager(String, Assembly) 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: 10.0.0
C#
public ResXResourceManager(
	string baseName,
	Assembly assembly
)

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.
assembly  Assembly
The assembly, from which the language of the neutral resources is tried to be auto detected. See the Remarks section for details.

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 the provided assembly has a NeutralResourcesLanguageAttribute defined, then it will be used to determine the language of the fallback culture. If the provided assembly does not define this attribute, then CultureInfo.InvariantCulture will be used as the default culture.

See Also