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 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.