EnumFastToStringDotNet
C#pushed over 4 years ago
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.
AI summary
Enum converter
Automatically generates a faster enum to string conversion method
- stars
- 31
- forks
- 2
- watching
- 3
- awesome list
- 1
Featured in 1 awesome list
Each link jumps to the spot where the list mentions EnumFastToStringDotNet.