How to

create and use inline functions

Published: 1. February 2012 | Updated: 1. February 2012
License: Microsoft Public License (MS-PL)
Categories: Framework
Tags: C#
Was this snippet helpful for you? YESYES / NONO
Func<string, string> func = (x) => x.ToUpperInvariant();

string result = func("test");

Console.WriteLine(result);
Console Output:
TEST
Send us feedback about this snippet »



Related Snippets: