how to Copy/Clone a derived DataTable

M

Mark

I would like to add a few properties and methods to an ADO.NET DataTable. So
the normal thing would be to derive a class:

Public Class MyTable
Inherits DataTable

Private This As That
Private TheOtherThing As Whatever

Now, a DataTable has Clone and Copy methods. Is there a straight forward way
for my Derived class to implement Clone and Copy, and rely on the base class
to copy the schema and data? Or do I have to do the heavy lifting myself?

I mean, I can create Clone and Copy functions in the derived MyTable class,
mark them as Shadows to have them replace or override these functions in the
base class, but is there any easy way to copy the schema and data?

Thanks
 

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

Top