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: almost 3 years ago
Linked from 1 awesome list
csharpcsharp-sourcegeneratordotnetroslyn
Related projects:
Repository | Description | Stars |
---|---|---|
| A C# source generator that creates an enumeration class from an enum type without using reflection. | 181 |
| A source generator that creates type-safe classes inspired by Kotlin's enum class | 4 |
| Improves C# enum usability and performance by adding extension methods and attributes. | 39 |
| A type-safe enum utility library with high-performance extension methods and attributes management | 1,750 |
| A C# source generator that creates performance-enhanced enum lookups by generating code from existing enums. | 22 |
| A C# source generator tool to create enumeration classes from enum types with additional features and customization options. | 16 |
| A tool that generates helper classes to map enums and their description attributes at compile-time. | 23 |
| A type-safe alternative to C# enums that supports various serialization and ORM frameworks. | 2,215 |
| A utility tool for generating enumerations based on music theory | 1 |
| Generates JSON converters for polymorphic data types with discriminator properties | 5 |
| A source generator that transforms environment variables into constants in C# code | 34 |
| A header file providing macros to simplify the declaration and use of enums in C++ with automatic string conversion and iteration support. | 62 |
| Provides a compiler and code analysis API for C# and Visual Basic languages | 19,145 |
| Automatically generates a ToString method for classes with a custom attribute | 18 |
| A fast alternative to Activator.CreateInstance for creating objects in .NET. | 244 |