Does Runtime support C# 6 language features?

108
2
Jump to solution
11-20-2017 06:09 AM
Highlighted
New Contributor III

Hi there. I saw some activity on the Runtime samples GitHub repo about Runtime possibly not supporting C# 6 language features. What is the official word on this? I'd be interested to learn more about official support for this in 10.2.7, 100.0.0 and 100.1.0.

Thanks,

-Cory

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Frequent Contributor

Hi,

Yes, there is no problem using later C# features. The change you saw in the samples repo is just house-keeping: enforcing usage of C# 5 while we still support Visual Studio 2012 as our minimum for ArcGIS Runtime SDK for .NET. Although it is possible to update the compiler in VS2012 on a per-project basis, we need to ensure that the samples just work for anyone still running VS2012 (Update 4). With the team here all running VS2017 (for our internal codebase) we were starting to see some C# 6 and potentially even 7.0/7.1 usage creep into our sample PRs.

It's really only for the upcoming release in late 2017 / early 2018. After that (for a future release later in 2018) we will review our system requirements again for the SDK and perhaps look at increasing the minimums to e.g. VS2015, .NET 4.6.1, and C# 6 . At that point we would increase the minimum language version in the samples repo as necessary.

Cheers

Mike

View solution in original post

2 Replies
Highlighted
Esri Frequent Contributor

Hi,

Yes, there is no problem using later C# features. The change you saw in the samples repo is just house-keeping: enforcing usage of C# 5 while we still support Visual Studio 2012 as our minimum for ArcGIS Runtime SDK for .NET. Although it is possible to update the compiler in VS2012 on a per-project basis, we need to ensure that the samples just work for anyone still running VS2012 (Update 4). With the team here all running VS2017 (for our internal codebase) we were starting to see some C# 6 and potentially even 7.0/7.1 usage creep into our sample PRs.

It's really only for the upcoming release in late 2017 / early 2018. After that (for a future release later in 2018) we will review our system requirements again for the SDK and perhaps look at increasing the minimums to e.g. VS2015, .NET 4.6.1, and C# 6 . At that point we would increase the minimum language version in the samples repo as necessary.

Cheers

Mike

View solution in original post

Highlighted
New Contributor III

Thank you.

Reply
0 Kudos