c# - Generic method for 2 generic list? -
i have 2 lists list<class1> , list<class2>. need create method manupulations. how create generic method passing list parameter.
void manipulatelist(ilist<obj> list) { //statement; }
you're trying create generic method:
public void manipulatelist<t>(ilist<t> list) if want able things items in lists, you'll want add generic constraint.
Comments
Post a Comment