相关疑难解决方法(0)

如何将TypeCode转换为实际类型?

在下面的代码中,我得到colType了该类型的代码.但是,我如何将该数字转换为实际类型?谢谢!!

for (int j = 0; j < dvColumns.Count; j++)
{
    // Get the name of the column.
    drvCols = dvColumns[j];
    colName = drvCols.Row.ItemArray[3].ToString();

    // Get columns data type code and save it off.
    colType = Convert.ToInt32(drvCols.Row.ItemArray[11]);
}
Run Code Online (Sandbox Code Playgroud)

c# types

15
推荐指数
3
解决办法
1万
查看次数

标签 统计

c# ×1

types ×1