Automatic Cast

  • Thread starter Thread starter Steph
  • Start date Start date
S

Steph

hello, i want replace my last code with a generic code :

o = an object;

before :
this.panel1.Controls.Remove( (webTest)o );


after (like) :
this.panel1.Controls.Remove( (o.getType())o );

but that doesnt work... i somebody have an idea....



steph
 

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