Using C # 6.0 on VS2010

1

I have Visual Studio 2010 installed. I would like to know if it is possible to use the features of version 6.0 of C # in my IDE

    
asked by anonymous 24.10.2017 / 21:33

1 answer

2

Unfortunately you will not be able to use the features of C # 6 in VS 2010. If it were at least VS 2012.

Follow the evolution of the language

Current versions

  • C # 7.1 - > VS2017 version 15.3 || .NET Core 2.0
  • async main, tuple member name inference, default expression, pattern match with generics .

  • C # 7 - > VS2017 || .NET Core 1.0 and later

  • Main: tuples, ref locals and ref return, pattern matching (including pattern-based switching instructions), out parameter declarations, local functions, binary literals, asynchronous arbitrary returns and digit separators.

  • C # 6 - > VS2015 .NET 4.6 || .NET Core 1.0

  • Implemented by Roslyn. Initializers for automatically deployed properties, using guidelines for importing static members, exception filters, indexed members, and element initializers, await on catch and finally , Add extension method on collection initiators. >

Previous Versions

The following are the main features that were introduced in earlier versions of C # and Visual Studio .NET.

  • C # 5 - > VS2013

    • This version of Visual Studio included bug fixes, performance enhancements, and technology visualizations from the .NET Compiler Platform ("Roslyn");
  • C # 5 - > VS2012 .NET 4.5 (4.7)

    • Async / await, caller information attributes;

    To direct to the .NET Framework 4.7 in Visual Studio 2012 or later, install the Microsoft .NET Framework Developer Pack 4.7 .

  • C # 4 - > VS2010 .NET 4

    • Dynamic, named arguments, optional parameters and generic covariance and contravariance;
  • C # 3 - > VS2008 .NET 3.5

    • Object and collection initializers, lambda expressions, extension methods, anonymous types, automatic properties, local variable type inference and LINQ (Integrated Language Query);
  • C # 2 - > VS2005 .NET 2.0

    • Anonymous, generic, nullable types, iterators / suspend, static classes, covariance and countervariance classes for delegates;
  • C # 1.1 - > VS2003

    • XML documentation comments and pragma #line;
  • C # 1 - > VS2002 .NET 1.0

    • The first version of C #.
24.10.2017 / 23:26