94b2861243
Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
26 lines
418 B
C#
26 lines
418 B
C#
using System;
|
|
|
|
public class ParserTest
|
|
{
|
|
void Test1 ()
|
|
{
|
|
bool b = true;
|
|
Console.WriteLine(b ? $"{1:0.00}" : $"bar");
|
|
}
|
|
|
|
void Test2 ()
|
|
{
|
|
Console.WriteLine($"This should work but the compiler explodes if the string is too long!");
|
|
}
|
|
|
|
void Test3 ()
|
|
{
|
|
string field = "";
|
|
var l1 = $"\"{field.Replace("\"", "gg")}\"";
|
|
var l2 = $@"""{field.Replace("\"", "gg")}""";
|
|
}
|
|
|
|
public static void Main()
|
|
{
|
|
}
|
|
} |