Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

Projects in Awesome Lists by Spinnernicholas

A curated list of projects in awesome lists by Spinnernicholas .

https://github.com/Spinnernicholas/EnumFastToStringDotNet

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.

csharp csharp-sourcegenerator dotnet roslyn

Last synced: 01 Aug 2024