J
Joe
I need to make a custom DataTable which has columns that inherits from
DataColumn and rows which inherit from DataRow. I would ideally like to have
my own DataColumnCollection and DataRowCollection so we don't need to keep
casting from a System.Data.DataRow or System.Data.DataColumn to our own.
Since neither collection class can be inherited from and both the Columns
and Rows property of the DataTable cannot be overridden I don't see a way to
do what I want.
In addition, the indexer of DataRow also cannot be overridden.
Any suggestions on what to do in this case?
Thanks,
Joe
DataColumn and rows which inherit from DataRow. I would ideally like to have
my own DataColumnCollection and DataRowCollection so we don't need to keep
casting from a System.Data.DataRow or System.Data.DataColumn to our own.
Since neither collection class can be inherited from and both the Columns
and Rows property of the DataTable cannot be overridden I don't see a way to
do what I want.
In addition, the indexer of DataRow also cannot be overridden.
Any suggestions on what to do in this case?
Thanks,
Joe