EnumFastToStringDotNet
Enum converter
Automatically generates a faster enum to string conversion method
This is a Visual Studio C# source generator for automatically generating enum extension methods that implement a switch expression based ToString method. Why? The default enum ToString method implements a binary search which is great for large lists but becomes time and memory inefficient for a just a few items when compared to a switch expression.
31 stars
3 watching
2 forks
Language: C#
last commit: over 2 years ago
Linked from 1 awesome list
csharpcsharp-sourcegeneratordotnetroslyn
Related projects:
Repository | Description | Stars |
---|---|---|
engrajabi/enum.source.generator | A C# source generator that creates an enumeration class from an enum type without using reflection. | 180 |
ashenblade/enumclass | A source generator that creates type-safe classes inspired by Kotlin's enum class | 4 |
ceiridge/betterenums | Improves C# enum usability and performance by adding extension methods and attributes. | 39 |
tylerbrinkley/enums.net | A type-safe enum utility library with high-performance extension methods and attributes management | 1,740 |
credfeto/credfeto-enum-source-generation | A C# source generator that creates performance-enhanced enum lookups by generating code from existing enums. | 19 |
hamedfathi/enumerationclassgenerator | A C# source generator tool to create enumeration classes from enum types with additional features and customization options. | 16 |
leoformaggi/enum-utilities-generator | A tool that generates helper classes to map enums and their description attributes at compile-time. | 23 |
ardalis/smartenum | A type-safe alternative to C# enums that supports various serialization and ORM frameworks. | 2,195 |
musictopia2/fastenumgenerator | A utility tool for generating enumerations based on music theory | 1 |
aviationexam/json-converter-source-generator | Generates JSON converters for polymorphic data types with discriminator properties | 4 |
betwixt-labs/dot-env-generator | A source generator that transforms environment variables into constants in C# code | 32 |
therocode/smartenum | A header file providing macros to simplify the declaration and use of enums in C++ with automatic string conversion and iteration support. | 62 |
dotnet/roslyn | Provides a compiler and code analysis API for C# and Visual Basic languages | 19,064 |
burgyn/mmlib.tostring | Automatically generates a ToString method for classes with a custom attribute | 18 |
nyrest/fastgenericnew | A fast alternative to Activator.CreateInstance for creating objects in .NET. | 240 |