Well, first of all, a Collection is closer to a DataTable than a
DataSet(*). Now, assuming that you want to make each property of the
contained object a column and each object a row, it wouldn't be that
difficult using Reflection, but I don't know of any existing method to do
it.
(*) A DataSet is a Collection of DataTables, although most of the time, it's
underused, and there's only one DataTable in a DataSet.
"Siu" <Si*@discussions.microsoft.com> wrote in message
news:76**********************************@microsof t.com...
Hi,
I've written a class which inheritates from the CollectionBase class
public class MyClass : CollectionBase
{
}
An object istantiated from MyClass can be transformed in a DataSet? does
exist a method which transform it into a DataSet?
MyClass myObject = new MyClass();
Thank you.