Errors from C # 6.0 syntax

I have included C # 6.0, as suggested by Resharper. I like the changes, but it seems to me that Visual Studio 2013 and C # 6.0 do not really like each other, because when I use lambdas for operators like

public static MVector operator +(MVector l, MVector r) => new MVector(l.X+r.X, l.Y+r.Y);

It says it should be ";" instead of lambda, but does not underline it in red. I turned everything I could into lambdas in this file and got a lot of errors, but nothing is emphasized, which is strange.

+4
source share
1 answer

Visual Studio 2013 does not support C # 6.0. Visual Studio 2015 (which will be RTM on 2015-07-20).

Visual Studio 2013 is used to support some beta versions of Roslyn, but this has not been updated to the latest versions of Roslyn.

+7
source

All Articles