Click or drag to resize
weroSoft AG, Software
RuntimeExtensionsIsCultureSameLanguage Method (CultureInfo, String)
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Compares the language of two culture info objects.

Namespace:  WeroSoft.Runtime
Assembly:  WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 3.0 Pre-Release
Syntax
C#
public static bool IsCultureSameLanguage(
	this CultureInfo cultureLeft,
	string cultureNameRight
)

Parameters

cultureLeft
Type: System.GlobalizationCultureInfo
Left info object.
cultureNameRight
Type: SystemString
Right culture name info object.

Return Value

Type: Boolean
True if the language equals, otherwise returns false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CultureInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
If you are check the languages "de-ch" and "de-de", the result will be true. If you are check the languages "de" and "de-ch", the result will be true. If you are check the languages "us" and "de", the result will be false.
See Also