2015-04-07 09:35:12 +01:00
|
|
|
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!");
|
|
|
|
}
|
|
|
|
|
2016-11-10 13:04:39 +00:00
|
|
|
void Test3 ()
|
|
|
|
{
|
|
|
|
string field = "";
|
|
|
|
var l1 = $"\"{field.Replace("\"", "gg")}\"";
|
|
|
|
var l2 = $@"""{field.Replace("\"", "gg")}""";
|
|
|
|
}
|
|
|
|
|
2015-04-07 09:35:12 +01:00
|
|
|
public static void Main()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|