How to configure CSharpCodeProvider that can be used Linq- improve language?

  • Thread starter Thread starter Alexander Vasilevsky
  • Start date Start date
How to configure CSharpCodeProvider that can be used Linq- improve language?

If you mean "how do you make CSharpCodeProvider cope with C# 3" then
it's something like this:

CSharpCodeProvider csc = new CSharpCodeProvider
(new Dictionary<string, string>() { { "CompilerVersion",
"v3.5" } });

(I don't have my working code to hand, but it's certainly *something*
like that, setting the CompilerVersion to "v3.5".)

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top