using System;
public delegate void DelegateClass(int data);
public class Starter {
public static void Main() {
DelegateClass del1 = MethodA;
del1(5);
DelegateClass del2 = MethodA;
del1(10); // inferred
}
public static void MethodA(T data) {
Console.WriteLine("MethodA ({0})", data);
}
}