From c80fc0a94c1b935820a7e998cc8870c802ac109b Mon Sep 17 00:00:00 2001 From: Tydude4Christ Date: Sat, 25 Mar 2017 15:06:41 -0500 Subject: [PATCH] v2.1.0 commit --- Build/build.ps1 | 6 +++--- README.md | 2 +- Src/Enums.NET.Tests/EnumsTest.cs | 2 +- Src/Enums.NET/EnumCache.cs | 1 - 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Build/build.ps1 b/Build/build.ps1 index 7615358..0cd9656 100644 --- a/Build/build.ps1 +++ b/Build/build.ps1 @@ -1,7 +1,7 @@ properties { - $zipFileName = "Enums.NET.2.0.0.zip" - $majorVersion = "2.0" - $majorWithReleaseVersion = "2.0.0" + $zipFileName = "Enums.NET.2.1.0.zip" + $majorVersion = "2.1" + $majorWithReleaseVersion = "2.1.0" $nugetPrelease = $null $version = GetVersion $majorWithReleaseVersion $packageId = "Enums.NET" diff --git a/README.md b/README.md index fe17e4f..119e6f3 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ I'm trying to integrate my improvements into [corefx](https://github.com/dotnet/ 1. Most of its static methods are non-generic which make them a pain to use and cause poor performance. 2. Most of its methods use reflection on each call without any sort of caching causing poor performance. 3. Its support for flag enum operations is extremely limited. The only flag enum method on `System.Enum` is the `HasFlag` method which is very slow, is not type-safe, and is ambiguous as to whether it determines if the value has all or any of the specified flags. It's all by the way. -4. It has no built-in support for retrieval of `Attribute`s applied to enum members which is a common practice for retrieval of the `DescriptionAttribute` or `EnumMemberAttribute`. +4. It has no built-in support for retrieval of `Attribute`s applied to enum members which is a common practice for retrieval of the `DescriptionAttribute`, `EnumMemberAttribute`, and `DisplayAttribute`. Enums.NET solves all of these issues and more. diff --git a/Src/Enums.NET.Tests/EnumsTest.cs b/Src/Enums.NET.Tests/EnumsTest.cs index bba4cec..102b84c 100644 --- a/Src/Enums.NET.Tests/EnumsTest.cs +++ b/Src/Enums.NET.Tests/EnumsTest.cs @@ -921,7 +921,7 @@ public void GetUnderlyingValue_ReturnsExpected_OnAny() Assert.AreEqual(false, GetUnderlyingValue(BooleanEnum.No)); Assert.AreEqual('b', GetUnderlyingValue(CharEnum.B)); } -#endregion + #endregion #region Defined Values Main Methods [Test] diff --git a/Src/Enums.NET/EnumCache.cs b/Src/Enums.NET/EnumCache.cs index 0429b96..97efb77 100644 --- a/Src/Enums.NET/EnumCache.cs +++ b/Src/Enums.NET/EnumCache.cs @@ -33,7 +33,6 @@ using EnumsNET.Numerics; using System.Runtime.CompilerServices; - #if ENUM_MEMBER_ATTRIBUTE using System.Runtime.Serialization; #endif