|
| 1 | +using System.Collections.Concurrent; |
| 2 | +using System.Collections.Generic; |
| 3 | + |
| 4 | +namespace System.Linq.Dynamic.Core.Parser |
| 5 | +{ |
| 6 | + internal static class EnumerationsFromMscorlib |
| 7 | + { |
| 8 | + /// <summary> |
| 9 | + /// Some enumeration types from mscorlib/netstandard. |
| 10 | + /// </summary> |
| 11 | + public static readonly IDictionary<Type, int> PredefinedEnumerationTypes = new ConcurrentDictionary<Type, int>(new Dictionary<Type, int> { |
| 12 | +#if !(UAP10_0 || NETSTANDARD || NET35 || NETCOREAPP) |
| 13 | + { typeof(AppDomainManagerInitializationOptions), 0 }, |
| 14 | + { typeof(Base64FormattingOptions), 0 }, |
| 15 | + { typeof(ConsoleColor), 0 }, |
| 16 | + { typeof(ConsoleKey), 0 }, |
| 17 | + { typeof(ConsoleModifiers), 0 }, |
| 18 | + { typeof(ConsoleSpecialKey), 0 }, |
| 19 | + { typeof(ActivationContext.ContextForm), 0 }, |
| 20 | + { typeof(EnvironmentVariableTarget), 0 }, |
| 21 | + { typeof(GCNotificationStatus), 0 }, |
| 22 | + { typeof(LoaderOptimization), 0 }, |
| 23 | + { typeof(PlatformID), 0 }, |
| 24 | + { typeof(Environment.SpecialFolder), 0 }, |
| 25 | + { typeof(Environment.SpecialFolderOption), 0 }, |
| 26 | +#endif |
| 27 | + { typeof(AttributeTargets), 0 }, |
| 28 | + { typeof(DateTimeKind), 0 }, |
| 29 | + { typeof(DayOfWeek), 0 }, |
| 30 | + { typeof(GCCollectionMode), 0 }, |
| 31 | + { typeof(MidpointRounding), 0 }, |
| 32 | + { typeof(StringComparison), 0 }, |
| 33 | + { typeof(StringSplitOptions), 0 }, |
| 34 | + { typeof(TypeCode), 0 } |
| 35 | + }); |
| 36 | + } |
| 37 | +} |
0 commit comments