Hi,
I try to use code:
Code:
public (string,string) Output()
{
return ("Hello","world!");
}
but get error.
Quote:
Type expected
Invalid token '(' in class, struct, or interface member declaration
Invalid token ',' in class, struct, or interface member declaration
Invalid token ')' in class, struct, or interface member declaration
Method must have a return type
I test
Code:
compilerParameters.CompilerOptions = "/langversion:7";
get error too.
Quote:
Invalid option '7' for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default
If replace
Code:
using Microsoft.CSharp;
to
Code:
using Microsoft.CodeDom.Providers.DotNetCompilerPlatform;
it will success.