Gets the culture types that pertain to the current CultureInfo object. : CultureInfo I18N « Internationalization I18N « VB.Net






Gets the culture types that pertain to the current CultureInfo object.

 

Imports System
Imports System.Globalization

Module Module1
    Public Sub Main()
        Dim mostCultureTypes() As CultureTypes = { _
                CultureTypes.FrameworkCultures, _
                CultureTypes.WindowsOnlyCultures}
        Dim allCultures() As CultureInfo
        Dim combo As CultureTypes

        allCultures = CultureInfo.GetCultures(CultureTypes.AllCultures)
        Dim ci As CultureInfo
        For Each ci In allCultures
            Console.WriteLine("Culture: {0}", ci.Name)
            combo = ci.CultureTypes
            Dim ct As CultureTypes
            For Each ct In mostCultureTypes
                If 0 <> (ct And combo) Then
                    Console.WriteLine(ct)
                End If
            Next ct
        Next ci
    End Sub
End Module

   
  








Related examples in the same category

1.List all Culture InformationList all Culture Information
2.String in Your LanguageString in Your Language
3.CurrentInfo for es-ES
4.Gets the CultureInfo that represents the culture used by the current thread.
5.CultureInfo.DisplayName
6.whether the current CultureInfo represents a neutral culture.
7.Tells whether the current CultureInfo is read-only.
8.Gets the CultureInfo that represents the parent culture of the current CultureInfo.
9.Defines the types of culture lists that can be retrieved using the CultureInfo.GetCultures method.
10.Console fallback UI culture
11.Determines the specific cultures that use the Chinese language, and displays the parent culture
12.Comparing and Sorting Data for a Specific Culture
13.Gets the list of calendars that can be used by the culture.
14.Display string representations of numbers for en-us culture
15.Specific culture double value format