07 2009 档案
将XmlDocument转成DataSet
摘要:There may be times when an object you are working with returns an XmlDocument object that you would like to bind to a server control such as a DataGrid. Because an XmlDocument cannot be bound directly...
阅读全文
C# 多线程 参数传递
摘要:class ThreadDemo { private Thread[] threads; private int thrs = 10;//线程数量 private ArrayList stringList; private event EventHandler OnNumberClear;//数据删除完引发的事件 public ThreadDemo(int number) { st...
阅读全文
阅读器关闭时read的尝试无效
摘要:这是类里的方法,执行完全没有问题的public override SqlDataReader GetSqlDataReader(string Sql, params SqlParameter[] commandParameters) { SqlDataReader sdr = null; using (SqlConnection connection = GetSqlConnection()) {...
阅读全文