HybridResourceManagerGetResourceSet Method

Retrieves the resource set for a particular culture.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public override ResourceSet? GetResourceSet(
	CultureInfo culture,
	bool loadIfExists,
	bool tryParents
)

Parameters

culture  CultureInfo
The culture whose resources are to be retrieved.
loadIfExists  Boolean
to load the resource set, if it has not been loaded yet and the corresponding resource file exists; otherwise, .
tryParents  Boolean
to use resource fallback to load an appropriate resource if the resource set cannot be found; to bypass the resource fallback process.

Return Value

ResourceSet
The resource set for the specified culture.

Exceptions

ArgumentNullExceptionculture is .
ObjectDisposedExceptionThe HybridResourceManager is already disposed.
MissingManifestResourceExceptiontryParents and ThrowException are and the resource of the neutral culture was not found.

See Also