
C#
60~
924066173@qq.com
展开
-
C# 时间戳(13位)与事件互转
/// <summary> /// 获取时间戳 /// </summary> /// <returns></returns> public static string GetTimeStamp(System.DateTime time) { lo...转载 2018-12-10 09:42:12 · 506 阅读 · 0 评论 -
C#当前线程不在单线程单元中,因此无法实例化ActiveX控件解决方法
void PrintMethod(){if (this.InvokeRequired)//判断进入该方法的线程是否是单(主)线程,是:再次调用该方法,否:执行else中内容 { try { this.Invoke(new MethodInvoker(delega...原创 2019-01-09 14:42:30 · 7408 阅读 · 0 评论 -
C#反射机制以及方法实例
引自:https://www.cnblogs.com/sxw117886/p/5687590.html转载 2019-01-31 14:28:32 · 224 阅读 · 0 评论 -
二分查找实现——数组,集合实例
//输入99999999 //2时, //顺序查找0.298秒,二分查找:0.002数组: int BinarSearch(int[] arr, int t) { int l = 0, u = arr.Length - 1; int p = 0;//位置 ...原创 2019-01-29 16:47:52 · 223 阅读 · 0 评论