public static void Main()
Exception s = new ArgumentException("test");
Exception n = new NullReferenceException("Test2");
Exception e = new Exception("test3");
Console.WriteLine(s is ArgumentException or NullReferenceException ? "Hello" : "Bye");
Console.WriteLine(n is ArgumentException or NullReferenceException ? "Hello" : "Bye");
Console.WriteLine(e is ArgumentException or NullReferenceException ? "Hello" : "Bye");
Test2<Test> t = new Test2<Test>();
public void Delete(string id, T item)
if (typeof(T) != typeof(Test))
Console.WriteLine(typeof(T));
Console.WriteLine("Not matched");