Search code examples
c#xamarinxamarin.iosxamarin-studio

Xamarin Studio does not recognize String Interpolation


Xamarin Studio version 5.10.3 build 51

For example if I wrote this code:

var text = $"Some string with {order}";
text = text.ToLower();

Xamarin studio seems not able to determine what the data type of "text" is. enter image description here

"order" also is an object and I can't access its properties. I changed the C# version of my project and it didn't fix anything.

enter image description here

If you know a solution to this problem please tell me.


Solution

  • As per Xamarin forums, string interpolation works in Xamarin 6.0, Check the link below: https://forums.xamarin.com/discussion/55995/xamarin-studio-not-recognize-string-interpolation