Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you instantiate a strongly typed DataTable from another dll?

Status
Not open for further replies.

dalchri

Programmer
Apr 19, 2002
608
0
0
US
I have a very common strongly typed DataTable I call a LookupDataTable:

ID int
Name string

I have used the XSD editor to create this class and use it all over the place that I have a ComboBox. I've also placed it into a dll for reuse.

Upon doing this, I discovered that the constructor for LookupDataTable is marked internal by the MSDataSetGenerator custom tool. So this means that I cannot instantiate the LookupDataTable in a project that references the dll.

Anyway to get MSDataSetGenerator to mark the constructor as public?
 
In fact you could just go to the class source of the datatable and change it. I'm not shure if that's a good idea, cause it might be internal for a reason, but it's worth the try, I guess.

(To get to the class source, just look up the declaration of the datatable in your form source and then right click on it and click on Go To Definition.)

And then silence smacks right in there...
... And it is loud!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top