I want to understand what is the best way for declaring a string, to use var or string if I already know that I have a string. For example I have the following:
string str = "here is some text";
or
var str = "here is some text";
Which one is better for the compiler in order the analyzers at Roslyn to work better for switch expressions vs switch statements? Thanks