using System; public class Gen {} static class Stuff { public static Type GetOpenType () { return typeof (Gen<>); } public static Type GetClosedType () { return typeof (Gen); } static int Main (string[] args) { if (GetOpenType () != typeof (Gen<>)) return 1; if (GetClosedType () != typeof (Gen)) return 1; return 0; } }