summaryrefslogtreecommitdiff
path: root/src/mscorlib/shared/System/Globalization/CultureTypes.cs
blob: f52ac82a83bf4db712b17338404592ab065ce12f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

// The enumeration constants used in CultureInfo.GetCultures().
// On Linux platforms, the only enum values used there is NeutralCultures and SpecificCultures 
// the rest are obsolete or not valid on Linux

namespace System.Globalization
{
    [Flags]
    public enum CultureTypes
    {
        NeutralCultures = 0x0001, // Neutral cultures are cultures like "en", "de", "zh", etc, for enumeration this includes ALL neutrals regardless of other flags
        SpecificCultures = 0x0002, // Non-netural cultuers.  Examples are "en-us", "zh-tw", etc., for enumeration this includes ALL specifics regardless of other flags
        InstalledWin32Cultures = 0x0004, // Win32 installed cultures in the system and exists in the framework too., this is effectively all cultures

        AllCultures = NeutralCultures | SpecificCultures | InstalledWin32Cultures,

        UserCustomCulture = 0x0008, // User defined custom culture
        ReplacementCultures = 0x0010, // User defined replacement custom culture.
        [Obsolete("This value has been deprecated.  Please use other values in CultureTypes.")]
        WindowsOnlyCultures = 0x0020, // this will always return empty list.
        [Obsolete("This value has been deprecated.  Please use other values in CultureTypes.")]
        FrameworkCultures = 0x0040, // will return only the v2 cultures marked as Framework culture.
    }
}