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

https://github.com/qluxzz/exhaustivedictionaryanalyzer

Analyzer that ensures that dictionary with enum key type sets values for all defined enum keys
https://github.com/qluxzz/exhaustivedictionaryanalyzer

analyzer csharp roslyn-analyzer

Last synced: 3 months ago
JSON representation

Analyzer that ensures that dictionary with enum key type sets values for all defined enum keys

Awesome Lists containing this project

README

          

# Exhaustive Dictionary Analyzer in C#

Install `ExhaustiveDictionary.Analyzer` and `ExhaustiveDictionary.Attribute` and place a `[Exhaustive]` attribute on an `Dictionary` to get exhaustive checks that you have added all members of the enum to the dictionary

| Package | Version |
| ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| [ExhaustiveDictionary.Analyzer](https://www.nuget.org/packages/ExhaustiveDictionary.Analyzer) | [![NuGet](https://img.shields.io/nuget/v/ExhaustiveDictionary.Analyzer.svg)](https://www.nuget.org/packages/ExhaustiveDictionary.Analyzer) |
| [ExhaustiveDictionary.Attribute](https://www.nuget.org/packages/ExhaustiveDictionary.Attribute) | [![NuGet](https://img.shields.io/nuget/v/ExhaustiveDictionary.Attribute.svg)](https://www.nuget.org/packages/ExhaustiveDictionary.Attribute) |