/dnum

Type-safe .NET Enum class replacement.

Primary LanguageC#GNU Lesser General Public License v3.0LGPL-3.0

Dnum

Dnum is a static class for accessing enumeration values much like the built-in .NET Enum class. Unlike Enum, Dnum is type-safe, reducing the number of enum-related runtime errors and eliminating the need for tedious, error-prone and inelegant down-casts.

Dnum also transparently supports the DescriptionAttribute? attribute, which allows you to conveniently use spaces and other characters in your enumeration constants.

Dnum 1.1 is now available via NuGet.

For documentation on how to use Dnum, see the Dnum project page.