SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sun Dec 16, 2018 9:05 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Please support C# 7.0
PostPosted: Sat Aug 04, 2018 10:45 am 
Offline

Joined: Fri Sep 28, 2012 8:16 am
Posts: 136
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group