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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -