Func.NET

It's great fun to code with C# and .NET!


Func<string, string> getSiteName;
Action<string> print;

getSiteName = lang =>
{
    if (lang == "zh-CN")
    {
        return "方客";
    }
    return "Func.NET";
};
print = Console.WriteLine;

var result = getSiteName("en-US");
print(result);