C# String function

lankapala
lankapala used Ask the Experts™
on
Hi, following code is not working VS 2012, it's working on the 2015,
How to work this in the Visual studio 2012
 var query = $"start={startDate.ToUniversalTime():s}&end={endDate.ToUniversalTime():s}";
                var response = await client.GetAsync($"/public/{Version}/jobs?{query}");
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2011
Top Expert 2015
Commented:
String interpolation was introduced in C# 6, which is available in VS 2015.

https://github.com/dotnet/roslyn/wiki/New-Language-Features-in-C%23-6

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial