CSharp 6 language features require a compiler/ide equivalent to Visual Studio 2015 or later.
note
Generally, older versions of Visual Studio will indicate syntax errors, won’t compile, etc when attempting to use newer language features. Some features depend on NuGet packages.