using System; namespace GenericTest { public class OuterGeneric { public class InnerGeneric { public static string GetTypeNames () { return typeof (T).ToString () + " " + typeof (U).ToString (); } } } class Program { public static int Main () { string typeNames = OuterGeneric.InnerGeneric.GetTypeNames (); Console.WriteLine (typeNames); return 0; } } }