摘要: //创建表 dtcon = new DataTable(); dtcon.Columns.Add("NO", typeof(string)); //数据类型为 文本 DataRow drcon = dtcon.NewRow(); drcon["NO"] = en.rowNumber; dtcon.R 阅读全文
posted @ 2020-05-06 09:51 liangyuwen 阅读(132) 评论(0) 推荐(0)
摘要: class JsonNewtonsoft { /// <summary> /// 把对象转换为JSON字符串 /// </summary> /// <param name="o">对象</param> /// <returns>JSON字符串</returns> public static stri 阅读全文
posted @ 2020-05-06 06:18 liangyuwen 阅读(234) 评论(0) 推荐(0)
摘要: //获取当前进程的完整路径,包含文件名(进程名)。string str = this.GetType().Assembly.Location;result: X:\xxx\xxx\xxx.exe (.exe文件所在的目录+.exe文件名) //获取新的 Process 组件并将其与当前活动的进程关联 阅读全文
posted @ 2020-05-06 05:47 liangyuwen 阅读(123) 评论(0) 推荐(0)
摘要: public class Log { public static bool isdebug { get { return true; } } private static object _O = new object(); private static readonly string logpath 阅读全文
posted @ 2020-05-06 05:46 liangyuwen 阅读(374) 评论(0) 推荐(0)