Visual Studio Code Metrics and the Maintainability index of switch case
- by pee2002
Hi there!
As a person who loves to follow the best practices,
If i run code metrics (right click on project name in solution explorer and select "Calculate Code Metrics" - Visual Studio 2010) on:
public static string GetFormFactor(int number)
{
string formFactor = string.Empty;
switch (number)
{
case…