Typical code samples using CSharpCodeProvider
pass CompilerVersion
parameter. Code from here:
var codeProvider =
new CSharpCodeProvider(
new Dictionary<String, String> { { "CompilerVersion", "v3.5" } });
I've tried to pass an empty dictionary and also tried to call the parameterless constructor of CSharpCodeProvider
and the result is the same.
So what happens internally if I don't specify `CompilerVersion? Why do most samples specify it at all times?