An open API service providing repository metadata for many open source software ecosystems.

GitHub / 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.

JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spinnernicholas%2FEnumFastToStringDotNet
PURL: pkg:github/Spinnernicholas/EnumFastToStringDotNet

Stars: 31
Forks: 2
Open issues: 1

License: None
Language: C#
Size: 28.3 KB
Dependencies parsed at: Pending

Created at: almost 4 years ago
Updated at: about 1 year ago
Pushed at: about 3 years ago
Last synced at: 2 months ago

Topics: csharp, csharp-sourcegenerator, dotnet, roslyn

    Loading...