diff options
Diffstat (limited to 'src/mscorlib/src/System/Globalization/CultureTypes.cs')
-rw-r--r-- | src/mscorlib/src/System/Globalization/CultureTypes.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Globalization/CultureTypes.cs b/src/mscorlib/src/System/Globalization/CultureTypes.cs new file mode 100644 index 0000000000..d506d50c9d --- /dev/null +++ b/src/mscorlib/src/System/Globalization/CultureTypes.cs @@ -0,0 +1,31 @@ +// 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(). +// +// Note that this isn't exposed in Silverlight +namespace System.Globalization { + + +[Serializable] + [Flags] + [System.Runtime.InteropServices.ComVisible(true)] + 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. + } + +} |