namespace GenericMethodPractice
static void Main(string[] args)
Console.WriteLine(" Value of addition={0}",z);
Console.WriteLine(" Value of subtraction={0}", u);
Console.WriteLine(" Value of Multiplication={0}", q);
Console.WriteLine(" Value of division={0}", w);
Console.WriteLine(" Value of addition={0}", v);
public static T Add<T>(T x, T y)
public static int Add(int x,int y)
public static T Sub<T>(T x, T y)
public static T Mul<T>(T x, T y)
public static T Div<T>(T x, T y)
Console.WriteLine("Exception raised");
public static int Div(int x, int y)