static void TestFunc() {
// Typick vraz lambda s delegtem Func 
Func<int, int> IncDelegate = delegate(int x) { return x + 1; };
Func<int, int> IncLambda = x => x + 1;

Console.WriteLine(IncDelegate(2));
Console.WriteLine(IncLambda(2));
}
