c# - Calling a method with Generic signature and parameter -


i have following signature has generic type , parameter below:

list<t> getmylist<t>(t filter); 

the filter type different list type. trying call this:

var mylist = repo.getmylist<list<items>>(filter); 

i not sure how specify type of 'filter' in method call. possible?

if types different, need have 2 generic types, below:

public list<t1> getmylist<t1, t2>(t2 filter); 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -