LocalizationContextFromAssemblyScope Method

Creates a LocalizationContext from the specified assembly.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static LocalizationContext FromAssemblyScope(
	Assembly assembly,
	CultureInfo? language = null
)

Parameters

assembly  Assembly
The assembly to create the context from.
language  CultureInfo  (Optional)
A suggested language for the localization operation. If , the current display language is used. This parameter is optional.
Default value: .

Return Value

LocalizationContext
A new LocalizationContext instance.

Exceptions

See Also