Enums.NET
FastEnum
Our great sponsors
Enums.NET | FastEnum | |
---|---|---|
4 | 1 | |
1,648 | 305 | |
- | - | |
3.6 | 5.9 | |
3 months ago | almost 2 years ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Enums.NET
- Need to replicate IntelliSense behavior for enums but using strings for keys
-
What is it about C# that you do NOT like compared to other languages?
If you deal with Enums regularly, Enum.NET is a must have: https://github.com/TylerBrinkley/Enums.NET.
-
How to store string alongside value in discriminated union?
I guess you use a reflection-based library / nuget package to read those attributes. You can still do this in F#. The equivalent declaration and how to read it back using [Enums.Net](https://www.nuget.org/packages/Enums.NET/) would be:
FastEnum
-
EnumValue<TEnum> and EnumValueCaseIgnored<TEnum> (Open.Text v3.2.3)
I don't expect to beat the performance of https://github.com/xin9le/FastEnum . But I expect to be far from the worst.
What are some alternatives?
FluentValidation - A popular .NET validation library for building strongly-typed validation rules.
.NEXT - Next generation API for .NET
CsvHelper - Library to help reading and writing CSV files
Open.Text - A set of useful extensions for working with strings, string-segments, spans, enums, and value formatting.
SmartEnum - A base class for quickly and easily creating strongly typed enum replacements in C#.
dotNext - Next generation API for .NET
Jint - Javascript Interpreter for .NET
Mediator.Net - A simple mediator for .Net for sending command, publishing event and request response with pipelines supported
Aeron.NET - Efficient reliable UDP unicast, UDP multicast, and IPC message transport - .NET port of Aeron
Humanizer - Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities
Guard - A high-performance, extensible argument validation library.
ENet-CSharp - Reliable UDP networking library