Releases: TylerBrinkley/Enums.NET
Releases · TylerBrinkley/Enums.NET
2.3.0
New Features
- Added
GetFlagCount
support. - Added
EnumFormat
parameter overloads for parsing to prevent array allocations. - Added .NET Standard 2.0 Build.
2.2.0
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
New Features
- Added direct support for
DisplayAttribute
. The name has been added asEnumFormat.DisplayName
and the order is respected using the flagEnumMemberSelection.DisplayOrder
. - Added a
GetAttributes
enum extension method for convenience. - Added .NET Standard 1.1 as a target due to
DisplayAttribute
.
2.0.0
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 parameterexcludeDuplicates
in theGetEnumMembers
,GetEnumMemberCount
,GetNames
, andGetValues
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 parametervalidate
in theToObject
andTryToObject
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
andChar
backed enum support which are supported inC++/CLI
andF#
respectively.
Breaking Changes
- Changed
EnumMember
'sAttributes
from anIEnumerable<Attribute>
to anAttributeCollection
. ObsoletedGetAttribute
,HasAttribute
, andGetAttributes
fromEnumMember
as this functionality is now encapsulated inAttributeCollection
'sGet
,Has
, andGetAll
methods. The obsoleted methods will be removed in a future version but are still there for easy migration. - Renumbered
EnumFormat
values to accommodate the newUnderlyingValue
member introduced to supportBoolean
andChar
backed enums. - Renamed
GetEnumMembers
,GetEnumMemberCount
, andGetEnumMember
toGetMembers
,GetMemberCount
, andGetMember
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
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
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.