A
Albert via DotNetMonster.com
Hi,
Let’s say that I have a class (MyRow) that inherits from System.Data.DataRow.
Is there a way to be able to add a parameter-less constructor and to
instantiate MyRow as follows:
class MyRow : System.Data.DataRow
{
MyRow(){
}
}
----
MyRow r = new MyRow().
I know the above hardly makes sense but in my case I want to inherit a typed
row form a typed DataSet.DataTable. Then I could add my own fields in
addition to the DataColumns already there.
This sounds suspicious to me, but I post it anyway,
Thanks in advance
Let’s say that I have a class (MyRow) that inherits from System.Data.DataRow.
Is there a way to be able to add a parameter-less constructor and to
instantiate MyRow as follows:
class MyRow : System.Data.DataRow
{
MyRow(){
}
}
----
MyRow r = new MyRow().
I know the above hardly makes sense but in my case I want to inherit a typed
row form a typed DataSet.DataTable. Then I could add my own fields in
addition to the DataColumns already there.
This sounds suspicious to me, but I post it anyway,
Thanks in advance