Yeah. I want GetModelFor method to return an object of type other than T. – Suhas Feb 22 at 9:47 @Suhas: Could you show some of your planned implementation, then?
I thought the parameter in your GetModelFor example was meant to be D, which matches my line here. – Matti Virkkunen Feb 22 at 9:59 You are right, that is D. But I also need to specify S so that GetModelFor becomes an extension method on type S – Suhas Mar 4 at 9:44 @Suhas: I still don't see why you can't do it like I suggested.
How about posting an example with two type arguments and what you would actually have inside the method? – Matti Virkkunen Mar 4 at 14:36 I understand your point now. I have added the implementation details of GetModelFor in the original question above.
I need to specify type S for auto-mapper. – Suhas Mar 7 at 6:52.
Yes - if you specify any type parameters, you must specify them all. Order o = new Order(); SomeOtherClass s = o.GetModelFor(); SomeOtherClass s2 = o.GetModelFor().
I'm trying to implement an extension method so as to get rid of need to specify the first parameter. – Suhas Mar 4 at 9:40.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.