using System;
using System.Linq;
using System.Linq.Expressions;
public class Test
{
public static void Main()
{
Func<int, object> hexConverter = x => "Value is " + x.ToString("X");
Console.WriteLine("{0}", hexConverter(36));
Expression<Func<int, object>> hexConverterExpression = x => "Good number is " + x.ToString("X");
Func<int, object> hexConverterToo = hexConverterExpression.Compile();
Console.WriteLine("{0}", hexConverterToo(36));
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKdXNpbmcgU3lzdGVtLkxpbnEuRXhwcmVzc2lvbnM7CiAKcHVibGljIGNsYXNzIFRlc3QKewogICAgcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQogICAgewogICAgICAgIEZ1bmM8aW50LCBvYmplY3Q+IGhleENvbnZlcnRlciA9IHggPT4gIlZhbHVlIGlzICIgKyB4LlRvU3RyaW5nKCJYIik7CiAKICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiezB9IiwgaGV4Q29udmVydGVyKDM2KSk7CiAKICAgICAgICBFeHByZXNzaW9uPEZ1bmM8aW50LCBvYmplY3Q+PiBoZXhDb252ZXJ0ZXJFeHByZXNzaW9uID0geCA9PiAiR29vZCBudW1iZXIgaXMgIiArIHguVG9TdHJpbmcoIlgiKTsKIAogICAgICAgIEZ1bmM8aW50LCBvYmplY3Q+IGhleENvbnZlcnRlclRvbyA9IGhleENvbnZlcnRlckV4cHJlc3Npb24uQ29tcGlsZSgpOwogCiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoInswfSIsIGhleENvbnZlcnRlclRvbygzNikpOwogCiAgICB9Cn0=