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

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -