470 packages tagged with “Enum”
Enums.NET is a high-performance type-safe .NET enum utility library
Classes to help produce strongly typed smarter enums in .NET.
The extremely fast enum utilities for C#/.NET. Provided methods are all achieved zero allocation and faster than System.Enum.
System.Text.Json (de)serialization support for Ardalis.SmartEnum.
An enumeration for common JSON options
Json.NET (de)serialization support for Ardalis.SmartEnum.
An enumeration for common JSON library types
Source code generator for FastEnum.
Core libraries of FastEnum.
EFCore support for Ardalis.SmartEnum.
Extensions to the JsonStringEnumConverter which supports attributes like EnumMember, Display and Description.
An enum for standard deployment environments
Library to allow conversion between an Enum Value and a string, in both directions. v4.0.1 fixes a MemoryLeak bug, in a MaliciousUser edge-case. See nuget for full version history
DotNetCore.Extensions
AutoFixture support for Ardalis.SmartEnum.
An enumerator for describing an interval of time
Source code generator for Enums.
Dapper support for Ardalis.SmartEnum.
Convenience methods for enums.
Helpful static methods (or extension methods) for enums and delegates, with constraints which can't be expressed in regular C#.
An enumerator for describing the day of the week (Mon, Tues, ..)
Extension for ServiceStack.Text to allow using EnumMember attributes to serialize and deserialize enumerations.
A set of useful extensions for EntityFrameworkCore (Enum Lookup Tables, Naming of tables / properties / keys, Pluralize).
An enum for various content types.
A derivative of Ardalis' SmartEnum, adding support for abbreviations
A .NET Standard library that provides extendable class based enums.
StringEnum is a base class for creating string-valued enums in .NET. Features - Your StringEnum interface looks similar to a regular enum - Provides static Parse() and TryParse() methods and implicit cast to string. - Intellisense will suggest the enum name if the class is annotated with the xml comment `<completitionlist>`. (Works in both C# and VB) Usage: ///<completionlist cref="HexColor"/> class HexColor : StringEnum<HexColor> { public static readonly HexColor Blue = Create("#FF0000"); public static readonly HexColor Green = Create("#00FF00"); public static readonly HexColor Red = Create("#000FF"); } // Static Parse Method HexColor.Parse("#FF0000") // => HexColor.Red HexColor.Parse("#ff0000", caseSensitive: false) // => HexColor.Red HexColor.Parse("invalid") // => throws InvalidOperationException // Static TryParse method. HexColor.TryParse("#FF0000") // => HexColor.Red HexColor.TryParse("#ff0000", caseSensitive: false) // => HexColor.Red HexColor.TryParse("invalid") // => null // Conversion from your `StringEnum` to `string` string myString1 = HexColor.Red.ToString(); // => "#FF0000" string myString2 = HexColor.Red; // => "#FF0000" (implicit cast)
Extra type constraints for Enum and Delegate.
Documentation is included as part of the package. Source and current issues at https://github.com/mrvshah/Utilities Raise a bug at github or email viral.shah@hotmail.co.uk