摘要: 属性: 1、CancellationPending 获取一个值,指示应用程序是否已请求取消后台操作。通过在DoWork事件中判断CancellationPending属性可以认定是否需要取消后台操作(也就是结束线程); 2、IsBusy 获取一个值,指示 BackgroundWorker 是否正在运 阅读全文
posted @ 2017-08-08 15:28 多1份努力~ 阅读(205) 评论(0) 推荐(0) 编辑
摘要: public class ListUtil { public static List ToList(DataTable dt) { List list = new List(); T t = default(T); PropertyInfo[] propertyinfos = null... 阅读全文
posted @ 2017-08-08 15:22 多1份努力~ 阅读(164) 评论(0) 推荐(0) 编辑
摘要: public class DataTableUtil { /// /// 泛型集合转化为dataTable /// /// 泛型 /// 集合 /// public static DataTable ToDataTable(IEnumerable list) ... 阅读全文
posted @ 2017-08-08 15:18 多1份努力~ 阅读(211) 评论(0) 推荐(0) 编辑