Opt remaining switch comparisons into using local comparer
Opt remaining switch comparisons into using local comparer

dotnet/codeformatter,mmitche/codeformatter,mmitche/codeformatter,kharaone/codeformatter,dotnet/codeformatter