2015-04-07 09:35:12 +01:00
|
|
|
using System;
|
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
|
|
class ConversionTest
|
|
|
|
{
|
|
|
|
static int Main ()
|
|
|
|
{
|
|
|
|
byte b = 3;
|
|
|
|
|
|
|
|
FormattableString c1;
|
|
|
|
c1 = $"{b}";
|
2016-02-22 11:00:01 -05:00
|
|
|
if (c1.Format != "{0}")
|
2015-04-07 09:35:12 +01:00
|
|
|
return 1;
|
|
|
|
|
|
|
|
IFormattable c2;
|
|
|
|
c2 = $"format { b }";
|
2016-02-22 11:00:01 -05:00
|
|
|
if (!(c2 is FormattableString))
|
2015-04-07 09:35:12 +01:00
|
|
|
return 2;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|