2 using System.Runtime.InteropServices;
4 public class Simple<T,K> {
5 public static void Gen<D>() {
11 public class Generic<A,B,C,D,E>
15 where E : class, new()
21 public interface Z<T> {}
23 public class TypeWithConstraints<T>
24 where T : A, IComparable, IComparable<string>, Z<string>
32 public void GenericMethod<A,B,C,D,E> ()
36 where E : class, new()
40 public static void Main ()
42 var x = new Simple<int, double> ();
44 Simple<int, double>.Gen<string> ();
45 Simple<int, object>.Gen<Type> ();