generics.addnew - follow question

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

Guest

if i use Generics.AddNew how do I pass an object to the items constructor?
I have a set of class all inheriting from a base class, all requiring one
parameter on their constructor - the data passed to it will be the same
independent of the class type
so how do i pass it to AddNew?
 
guy said:
if i use Generics.AddNew how do I pass an object to the items
constructor?
I have a set of class all inheriting from a base class, all requiring one
parameter on their constructor - the data passed to it will be the same
independent of the class type
so how do i pass it to AddNew?

Which 'AddNew' method?
 
system.componentmodel.bindinglist.addnew

its ok,

according to the docs
AddNew does not support constructors:(
 

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