static void GenericTest() { GenericStack <string, int> gs = new GenericStack <string, int>(); gs.DisplayTypesofTemplates(); GenericStack <Students, ListStudents> gs2 = new GenericStack <Students, ListStudents>(); gs2.DisplayTypesofTemplates(); }