03 2013 档案
摘要:第一:导入System.ServiceProcess这个名称空间第二:遍历进程类,找到windows服务所在进程View Code 1 ServiceController[] service=ServiceController.GetServices(); 2 bool isStart = false; 3 for (int i = 0; i < service.Length; i++) 4 { 5 if (service[i].ServiceName.ToUpper().Equals("...
阅读全文
摘要:1.网上例子http://www.2cto.com/kf/201204/127785.htmlSerialize() 和getSendDetailTest()2.研发中例子dt转化成modeldt转化model Code 1 public static object GetModel(DataTable dt, object model) 2 { 3 4 foreach (DataRow row in dt.Rows) 5 { 6 foreach (var item in model.GetT...
阅读全文