[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-interpolation-05.cs
blob4cf2e64196bd6b4a50cd1036eb0f2225dd3a5036
1 using System;
3 public class ParserTest
5 void Test1 ()
7 bool b = true;
8 Console.WriteLine(b ? $"{1:0.00}" : $"bar");
11 void Test2 ()
13 Console.WriteLine($"This should work but the compiler explodes if the string is too long!");
16 void Test3 ()
18 string field = "";
19 var l1 = $"\"{field.Replace("\"", "gg")}\"";
20 var l2 = $@"""{field.Replace("\"", "gg")}""";
23 public static void Main()