Click or drag to resize

StringResources Constructor

Initializes a new instance of the StringResources class.

Namespace: Altaxo
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public StringResources(
	string path,
	string resourceName,
	Assembly assemblyContainingTheResources
)

Parameters

path  String
The path to the resource. This is usually the default namespace, a dot, and the folders (separated by dots) where the resource file(s) reside. See remarks for how to name the neutral resource files and the resource files for other cultures.
resourceName  String
Name of the neutral (english) resource file (without the '.resource' extension.
assemblyContainingTheResources  Assembly
The assembly containing the resources.
Remarks
The naming conventions will be explained using AltaxoCore as example.

The default namespace of the AltaxoCore DLL is 'Altaxo'.

The resource files reside in the source folder 'Resources'.

The neutral resource file is named 'StringResources.resources'.

The resource file for the german culture must be named 'de.StringResources.resources' (two-letter_culture_name + dot + neutral_resource_file_name).

This will lead to the following arguments for creating the instance:

The path argument is 'Altaxo.Resources' (default_namespace + dot + foldername).

The resourceName argument is 'StringResources'.

The assemblyContainingTheResources argument must refer to AltaxoCore.

See Also