Using C# 6.0 in VS2010

Asked

Viewed 80 times

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

1 answer

2

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

Follow the evolution of language

Current versions

  • C# 7.1 -> VS2017 version 15.3 || .NET Core 2.0
  • async main, Tuple member name inference, default expression, pattern matching 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), parameter declarations out, local functions, binary literals, digit separators and asynchronous arbitrary returns.

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

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

Previous versions

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

  • C# 5 -> VS2013

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

    • Async/await, caller information attributes;

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

  • C# 4 -> VS2010 . NET 4

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

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

    • Anonymous, generic, anudable types, iterators/suspension, Static classes, covariance and countervariance for delegates;
  • C# 1.1 -> VS2003

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

    • The first version of C#.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.