using System;
public class Program
{
public static void Main()
var test = new TestOperations<int>();
Console.WriteLine(test.Add(1,2));
}
public class TestOperations<T>
public T Add(T first, T second)
var result = default(T);
if (typeof(T) == typeof(int))
dynamic a = first, b = second;
result = a + b;
return result;