如何将对象转换为Datatble C#?
问题描述:
我有一个C#方法,对象返回数据类型
喜欢这个
Hi , i have a C# method with the object return data type
like this
datatable Dt=new Datatable();
public object Method1()
{
return Dt;
}
当我尝试这样做但似乎错了!为什么?!
when i try to do this but it seems its wrong ! why?!
datatable A=new Datatble();
A=myobject.Method1();