Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
GeneralRe: About Reflecting and generics Pin
AspDotNetDev14-Feb-12 21:52
protectorAspDotNetDev14-Feb-12 21:52 
AnswerRe: About Reflecting and generics Pin
BobJanova14-Feb-12 23:20
BobJanova14-Feb-12 23:20 
GeneralRe: About Reflecting and generics Pin
PozzaVecia14-Feb-12 23:29
PozzaVecia14-Feb-12 23:29 
GeneralRe: About Reflecting and generics Pin
BobJanova15-Feb-12 0:50
BobJanova15-Feb-12 0:50 
GeneralRe: About Reflecting and generics Pin
PozzaVecia15-Feb-12 1:24
PozzaVecia15-Feb-12 1:24 
GeneralRe: About Reflecting and generics Pin
BobJanova15-Feb-12 1:59
BobJanova15-Feb-12 1:59 
GeneralRe: About Reflecting and generics Pin
PozzaVecia15-Feb-12 2:30
PozzaVecia15-Feb-12 2:30 
GeneralRe: About Reflecting and generics Pin
BobJanova15-Feb-12 2:37
BobJanova15-Feb-12 2:37 
There is no reason why mPricer should construct these objects within its own constructor. Construct them outside and pass them in, statically typed as car and moto, as in my example.

// I need to obtain an istance of mPricer<carA,motoB> starting from strings

No, no you do not, and until you understand this you're going to keep tying yourself in knots. You need to obtain an instance of mPricer the car and moto instances of which are instantiated from strings. I already demonstrated how to do this.

You seem to show a fundamental lack of understanding of the difference between types and instances, and frankly until you get a grip on that you shouldn't be dabbling with this sort of runtime creation.
GeneralRe: About Reflecting and generics Pin
GParkings15-Feb-12 2:52
GParkings15-Feb-12 2:52 
GeneralRe: About Reflecting and generics Pin
GParkings15-Feb-12 2:54
GParkings15-Feb-12 2:54 
GeneralRe: About Reflecting and generics Pin
PozzaVecia15-Feb-12 3:09
PozzaVecia15-Feb-12 3:09 
GeneralRe: About Reflecting and generics Pin
GParkings15-Feb-12 3:25
GParkings15-Feb-12 3:25 
GeneralRe: About Reflecting and generics Pin
BobJanova15-Feb-12 3:40
BobJanova15-Feb-12 3:40 
GeneralRe: About Reflecting and generics Pin
PozzaVecia15-Feb-12 10:17
PozzaVecia15-Feb-12 10:17 
GeneralRe: About Reflecting and generics Pin
BobJanova15-Feb-12 21:57
BobJanova15-Feb-12 21:57 
GeneralRe: About Reflecting and generics Pin
PozzaVecia16-Feb-12 0:02
PozzaVecia16-Feb-12 0:02 
GeneralRe: About Reflecting and generics Pin
GParkings15-Feb-12 22:54
GParkings15-Feb-12 22:54 
GeneralRe: About Reflecting and generics Pin
PozzaVecia16-Feb-12 0:05
PozzaVecia16-Feb-12 0:05 
QuestionTeam Project Pin
tryharder14-Feb-12 10:23
tryharder14-Feb-12 10:23 
QuestionResponse.TransmitFile not working on local network Pin
Member 342693614-Feb-12 5:08
Member 342693614-Feb-12 5:08 
QuestionC# 2010 - Sql SMO Backup ? Pin
Paramu197314-Feb-12 4:20
Paramu197314-Feb-12 4:20 
AnswerRe: C# 2010 - Sql SMO Backup ? Pin
Eddy Vluggen14-Feb-12 7:26
professionalEddy Vluggen14-Feb-12 7:26 
GeneralRe: C# 2010 - Sql SMO Backup ? Pin
Paramu197314-Feb-12 18:45
Paramu197314-Feb-12 18:45 
GeneralRe: C# 2010 - Sql SMO Backup ? Pin
Paramu197314-Feb-12 22:32
Paramu197314-Feb-12 22:32 
QuestionInfoPath 2010 with C# code entered data disappearing Pin
Member 864367514-Feb-12 4:15
Member 864367514-Feb-12 4:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.