using System; using System.Collections; public class Test{ public static void Main(){ Z<X> obj2=new Z<X>(); } } public class Z<T> where T: class { public void Iterate(T data) { } } public class X{ }