0
我创建了一个派生自DataTable的类,我想调用一个负责创建我的自定义DT的方法。如何创建一个类型的DataTable
我所做的:
public class MyDataTable : DataTable
{
public MyDataTable(){
}
public void LoadData(){
//I want to create here the procedure to fill my DT
//I want to do something like this = new DataTable in order to reference this class later. I know that this is readonly but I think you get the idea
}
}
然后我想打电话给我的新类这样
MyDataTable dt = new MyDataTable();
dt.LoadData();
而且我要的是DT包含了所有的信息。那么我怎么能在我的LoadData中引用类内部的类呢?
谢谢
你的意思是“这个”? – Ralf
@Ralf恐怕他有。 – Tafari