LocalizationHelperGetResourceSet Method

Gets a resource set for the specified context if available. The result can be freely edited.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static IExpandoResourceSet? GetResourceSet(
	LocalizationContext context,
	CultureInfo? culture = null
)

Parameters

context  LocalizationContext
The localization context to use for the operation. To retrieve a resource set, the LocalizationScope must be LocalScope or AssemblyScope.
culture  CultureInfo  (Optional)
The culture for which the resource set is requested. If , the LanguageHint is used. This parameter is optional.
Default value: .

Return Value

IExpandoResourceSet
An IExpandoResourceSet instance if a resource set is available for the specified context; otherwise, .

Exceptions

See Also