1

I come from Python and I would like to work also in C# projects with Tuples.

Is it possible to work with the C#7.0 features in Visual Studio 2013? If yes how?

I have the latest version of VS2013 v.12.0.40629.00 Update 5 and .Net v.4.7.02053.

rene
  • 41,474
  • 78
  • 114
  • 152
GertR
  • 75
  • 1
  • 7
  • 2
    I'm pretty sure you can change some project or build files to build with the newer compilers but you won't get ide support, which means you'll probably be fighting with intellisense and code completion which doesn't understand the new syntax. – Lasse V. Karlsen Aug 22 '17 at 08:45
  • 2
    Is there a reason you can't just upgrade to the newer version of Visual Studio and avoid all the pain? VS Community is likely even free for you to use. – DavidG Aug 22 '17 at 08:51
  • 1
    I'd highly recommend creating classes (even if they are simple with two fields) instead of using Tuples... people used to scripting languages tend to like using them, but in C# they tend to cause more problems than they solve. For example it's much more readable to see someObject.InterestRate than someTuple.Item1 when maintaining the code. Please consider this carefully – Milney Aug 22 '17 at 09:24
  • @DavidG Yes, the money ;) My boss will not spend for update. – GertR Aug 22 '17 at 09:29
  • @GertR Do you have less than 5 devs in your team? – DavidG Aug 22 '17 at 09:29
  • @DavidG Yes, can we use Community 2017 for internal use (Intranet)? – GertR Aug 22 '17 at 09:32
  • 2
    You can use VS Community for any dev work if you are 5 devs or less, have less than 250 computers in company or have less than US$1million revenue.. – DavidG Aug 22 '17 at 09:36
  • @Milney, You need to read up on the new tuple syntax in C# 7. `Item1` etc are a thing of the past: tuple elements can now have real names. – David Arno Aug 22 '17 at 09:40

0 Answers0