This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generics and Dynamic instantiation problem

marcos mm
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me to fix the code in the Main so that is works as intended?
Gurus will know what I'm after.

Please see below:

// this method returns an instance of
// one of the child classes: MyElementA, MyElementB, MyElementC, etc...

// this method returns a specific mapper based on the element

// Main

// end-Main
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic