Thought I was doing something simple, but somehow can't make it even compile.
protected List<R> Retrieve<R>(T request)
I want to write a generic method that can return different responses base on the request type. So when I call a web api site, I may get different strong typed requests, but in this function, I will do the json serialization, send the request, and deserialization the response back.
Looks like c# won't allow me to do this. Is there any workaround or I will need to write different methods for each request.
protected List<R> Retrieve<T, R>(T request)