0

I believe this functionality was added to 4.6. My project is using this framework for a targeted version but it's throwing simple illegal tokens errors.

public String Text {get; set;} = "This is a test";

I am wondering if there is anything else I am missing that I need to modify to make my project compliant.

Thank you

1 Answers1

2

You need Visual Studio 2015 or later. Or you can try to install extensions for VS2013. Read this for more details.

Valerii
  • 2,147
  • 2
  • 13
  • 27
  • What could be done to change this: List list { get; set; } = new List(); How could I make this compliant for VS13? –  Aug 31 '17 at 19:06
  • 1
    @Arrayoob Initialize the property in the constructor instead. – Kyle Aug 31 '17 at 19:12