Wondering why the "using static" is not functional in Visual Studio 2013.
Asked
Active
Viewed 1,097 times
1
-
1@Guy you can in c#6 and above – zaitsman Mar 12 '17 at 10:50
-
3Because it was only introduced with VS2015 – Matthew Watson Mar 12 '17 at 10:50
-
But why the tutorial in the link worked? https://msdn.microsoft.com/en-us/library/sf0df423.aspx – WinMaker Mar 12 '17 at 10:50
-
That link points at VS2015 documentation. – Matthew Watson Mar 12 '17 at 10:51
2 Answers
3
You need a minimum of VS 2015 to use c# 6 features.
You also need to ensure that c#6 is enabled in the Language version
property of the project.

zaitsman
- 8,984
- 6
- 47
- 79
0
"using static" feature was introduced in C# 6.0. How to enable C# 6.0 features in Visual Studio 2013 is described here

Community
- 1
- 1

Oleg Lukash
- 291
- 2
- 7