Skip to content

Releases: TylerBrinkley/Enums.NET

2.3.0

21 Nov 05:27
Compare
Choose a tag to compare

New Features

  • Added GetFlagCount support.
  • Added EnumFormat parameter overloads for parsing to prevent array allocations.
  • Added .NET Standard 2.0 Build.

2.2.0

06 Jun 04:06
Compare
Choose a tag to compare

New Features

  • Added CombineFlags(IEnumerable<TEnum> flags) overload.

Fix

  • Fixed memory allocation regression on enumerating members which was introduced in 2.1.1.

2.1.1

25 Mar 20:12
Compare
Choose a tag to compare

New Features

  • Added direct support for DisplayAttribute. The name has been added as EnumFormat.DisplayName and the order is respected using the flag EnumMemberSelection.DisplayOrder.
  • Added a GetAttributes enum extension method for convenience.
  • Added .NET Standard 1.1 as a target due to DisplayAttribute.

2.0.0

01 Jan 22:54
Compare
Choose a tag to compare

The goal of this release was to align the API with a proposal to merge its features into corefx.

New Features

  • Added EnumMemberSelection enum to replace the boolean parameter excludeDuplicates in the GetEnumMembers, GetEnumMemberCount, GetNames, and GetValues methods. The boolean parameter version of these methods are still there to allow easy migration but are obsoleted and will be removed in a future version.
  • Added EnumValidation enum to replace the boolean parameter validate in the ToObject and TryToObject methods. The boolean parameter version of these methods are still there to allow easy migration but are obsoleted and will be removed in a future version.
  • Added Boolean and Char backed enum support which are supported in C++/CLI and F# respectively.

Breaking Changes

  • Changed EnumMember's Attributes from an IEnumerable<Attribute> to an AttributeCollection. Obsoleted GetAttribute, HasAttribute, and GetAttributes from EnumMember as this functionality is now encapsulated in AttributeCollection's Get, Has, and GetAll methods. The obsoleted methods will be removed in a future version but are still there for easy migration.
  • Renumbered EnumFormat values to accommodate the new UnderlyingValue member introduced to support Boolean and Char backed enums.
  • Renamed GetEnumMembers, GetEnumMemberCount, and GetEnumMember to GetMembers, GetMemberCount, and GetMember respectively. The old versions are still there to allow easy migration but are obsoleted and will be removed in a future version.

1.0.0

05 Nov 05:10
Compare
Choose a tag to compare

It's finally here! After over a year and a half of on and off again development I'm proud to present version 1.0.0 of Enums.NET, a high-performance type-safe .NET enum utility library. I hope you find this useful.

Tyler Brinkley

1.0.0-rc1

25 Aug 03:09
Compare
Choose a tag to compare
1.0.0-rc1 Pre-release
Pre-release

This is the first release candidate for Enums.NET, the API should now be very stable. Documentation may not be fully correct or consistent but everything has some documentation.