SessionsManagerSelectLanguage(LanguageInfo, CultureInfo) Method

Selects a language from the array of languages by the specified CultureInfo instance and then completes loading of the language data from related file if that is required.

Definition

Namespace: SMath.Manager
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.2.9018.0
C#
public LanguageInfo SelectLanguage(
	LanguageInfo[] languages,
	CultureInfo culture
)

Parameters

languages  LanguageInfo
Array to select the language from.
culture  CultureInfo
Culture to determine the value of Abbr and select the lanuage by.

Return Value

LanguageInfo
The selected language which is ready for use.

Remarks

Throws InvalidOperationException if languages is empty.

Exceptions

See Also