How to enable C# 6.0 feature in Visual Studio 2013?

I was going through the latest features introduced in C# 6.0 and just followed an example of auto property initializer,

class NewSample
{
    public Guid Id { get; } = Guid.NewGuid();
}

but my IDE did not recognize the syntax.

I am wondering how I could enable C# 6.0 in Visual Studio 2013. The Target framework I am using is 4.5.1.

6 Answers
6

Leave a Comment