正在查询的是标签是:类型转换

  • 将DataRow转换成指定类型

    所属分类1:Asp.Net | 更新时间:2010-1-11 21:04:46
    [code:csharp]#region 将DataRow转换成指定类型/// 将DataRow转换成指定类型/// 实体类public static T ConvertToEntity(DataRow pDataRow){Object entity = null;try{Object proValue = null;FieldInfo fieldinfo = null;if (pDataRow != null){entity = Activator.CreateInstance();//动态创建类的实例Type pType = entity
    查看更多内容...