SmartAnnotations
throw
SmartAnnotations | throw | |
---|---|---|
3 | 1 | |
47 | 1,181 | |
- | - | |
5.3 | 2.7 | |
about 3 years ago | 8 months 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.
SmartAnnotations
-
Displaying Enums with custom value
You can use annotations, more specifically the Display attribute, e.g., `[Display(Name = "Junior Developer")]. I'm working on source generators for annotations, you can find it here
- Source generator for data annotations.
throw
What are some alternatives?
SmartEnum - A base class for quickly and easily creating strongly typed enum replacements in C#.
GuardClauses - A simple package with guard clause extensions.
Guard - A high-performance, extensible argument validation library.
assertnever - Syntactical sugar for assert never
Nullable - A source code only package which allows you to use .NET's nullable attributes in older target frameworks like .NET Standard 2.0 or the "old" .NET Framework.
oops - 🔥 Error handling library with context, assertion, stack trace and source fragments
ZeroIoC - ZeroIoC is reflectionless IoC Container for C#
Fluxera.Guards - An extendable guard implementation.
Roslyn - The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
WrapperValueObject - A .NET source generator for creating simple value objects wrapping primitive types.
validatum - An open-source library for building fluent validation functions for .NET.