I'm installing Visual Studio 2017 to play around with some of the new features, in my case the new language features for tuples.
Use Case
My colleagues are using VS2015, while I test out VS2017. I want to take some existing libraries where we return objects of Tuple<?,?>
and rewrite a couple of them to test it out etc. Obviously I will be committing code (even though it is in test) back to our git dev branches (TFS).
Question
Is there a compiler directive that I can use to detect the version of C# currently in operation? example like #CSHARP_VERSION_7
that I can wrap around my rewritten methods, so when my colleagues merge back in (dev) my new C# 7.0 tuple methods wont cause compilation issues?
FYI, I have read the following: