Table of Contents

Class ChainedResourceManager

Namespace
ItTiger.Core.Resources
Assembly
ItTiger.Core.dll
Resolves strings from a prioritized sequence of resource managers.
public sealed class ChainedResourceManager : ResourceManager
Inheritance
ChainedResourceManager
Inherited Members

Remarks

Use this resource manager to compose application resources with reusable-library resources. Place application resources first so that they can override library defaults. A missing or empty value continues lookup with the next manager. A manager that throws System.Resources.MissingManifestResourceException is skipped.

Constructors

ChainedResourceManager(params ResourceManager[])

Initializes a new instance of the ChainedResourceManager class.
public ChainedResourceManager(params ResourceManager[] managers)

Parameters

managers ResourceManager[]
The resource managers to query in priority order. Null entries are ignored.

Exceptions

ArgumentNullException
managers is null.

Methods

GetString(string)

Gets the first non-empty string found for the specified resource name, using the current UI culture and its fallback chain.
public override string? GetString(string name)

Parameters

name string
The name of the resource to retrieve.

Returns

string
The first non-empty matching resource string, or null if none is found.

GetString(string, CultureInfo?)

Gets the first non-empty string found for the specified resource name and culture.
public override string? GetString(string name, CultureInfo? culture)

Parameters

name string
The name of the resource to retrieve.
culture CultureInfo
The culture to use for lookup, or null to use the current UI culture. The value is passed unchanged to each resource manager.

Returns

string
The first non-empty matching resource string, or null if none is found.