|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
generics.addnew - follow questionif 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" <g**@discussions.microsoft.com> schrieb: Which 'AddNew' method?> 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? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> system.componentmodel.bindinglist.addnew
its ok, according to the docs AddNew does not support constructors:( Show quoteHide quote "Herfried K. Wagner [MVP]" wrote: > "guy" <g**@discussions.microsoft.com> schrieb: > > 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? > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/> > >
Microsoft doesn't want you to use VB .Net
Unmanaged C dll call The connection is dead OpenFileDialog XML question WIA.ImageFile to System.Drawing.Image How to loop thru each controls ? Using VB Keywords In An Enum Statement How to get a List of Checked items from a Treeview Developing Application like Photoshop |
|||||||||||||||||||||||