Enums.NET v2.0.0 Release Notes
Release Date: 2017-01-01 // over 7 years ago-
๐ 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.
- โ Added