Problem with dynamic code generetion and cast.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I create an object with type A dinamicly and when I obtain it I tryed cast it to A and this action cause an exception

A a = (A)dynamicCreation(...); // this cause invalid cast exceptio

Thanks for any help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top