Func convert = delegate(string s) { return s.ToUpper(); }; string name = "Dakota"; Console.WriteLine(convert(name)); // This code example produces the following output: // // DAKOTA