http://pt.stackoverflow.com/questions/130191/como-declarar-uma-fun%C3%A7%C3%A3o-dentro-de-outra-fun%C3%A7%C3%A3o-em-c

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	delegate void Teste2();
	
	public static void Main()
	{
		Action Teste = () =>
		{
			Console.WriteLine("Teste!");
		};
		
		Teste2 teste2 = delegate() {
			Console.WriteLine("Teste 2!");
		};
		
		Func<string, string> teste3 = delegate(string argumento) {
			return argumento + " " + argumento;
		};
		
		Teste();
		teste2();
		Console.WriteLine(teste3("Buemba!"));
		Console.WriteLine("Hello World");
	}
}
;