• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
精彩一生
博客园    首页    新随笔    联系   管理    订阅  订阅
2018年10月22日
C# 同步更新网盘和本地的文件夹及文件
摘要: 该程序是可以更新本地文件或更新网盘文件或者网盘和本地同步更新 下载地址: https://files.cnblogs.com/files/Wonderful-Life/UpdateFilesSync.rar 阅读全文
posted @ 2018-10-22 17:57 精彩一生 阅读(1596) 评论(0) 推荐(0)
C# 截取两个字符串中间的子字符串
摘要: /// <summary> /// 获取双引号间的字符串 /// </summary> /// <param name="str"></param> /// <returns></returns> internal string GetBetweenDoubleQuoteString(string 阅读全文
posted @ 2018-10-22 17:43 精彩一生 阅读(2315) 评论(0) 推荐(0)
C# 弹出确定、取消窗口
摘要: if (MessageBox.Show("确定要退出吗?", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel) {} MessageBoxButtons messButton = MessageBoxButtons.OKCancel; DialogResult... 阅读全文
posted @ 2018-10-22 17:42 精彩一生 阅读(4506) 评论(0) 推荐(0)
C# 弹出一个可输入字符串的窗口
摘要: string str=Interaction .InputBox ("请输入字符串","字符串","",100,100) 阅读全文
posted @ 2018-10-22 17:40 精彩一生 阅读(1821) 评论(0) 推荐(0)
C# 正则表达式提取字符串中括号里的值
摘要: version = Regex.Replace(str, @"(.*\()(.*)(\).*)", "$2"); //小括号() Regex rgx = new Regex(@"(?i)(?<=\[)(.*)(?=\])");//中括号[] string tmp = rgx.Match(CvoName).Value;//中括号[] string sheetData = Reg... 阅读全文
posted @ 2018-10-22 17:39 精彩一生 阅读(26341) 评论(0) 推荐(5)
C# List<T>排序
摘要: list<string>排序、list<int>排序 strList = strList.OrderBy(o => double.Parse(o)).ToList(); //数字 listFunc = listFunc.OrderBy(o => o).ToList(); //字母 list<clas 阅读全文
posted @ 2018-10-22 17:38 精彩一生 阅读(2217) 评论(0) 推荐(0)
C# 杀掉Windows中所有Excel进程
摘要: Process[] procs = Process.GetProcessesByName("excel"); foreach (Process pro in procs) { pro.Kill();//没有更好的方法,只有杀掉进程 } 阅读全文
posted @ 2018-10-22 17:33 精彩一生 阅读(1494) 评论(1) 推荐(0)
C# 获取结构体的所有成员
摘要: 读取结构体的所有成员(Engine为结构体) FieldInfo[] fieldInfos = typeof(Engine).GetFields(); 阅读全文
posted @ 2018-10-22 17:31 精彩一生 阅读(3336) 评论(0) 推荐(1)
C# 使用lambda表达式过滤掉数组中的空字符串
摘要: 使用lambda表达式过滤掉数组中的空字符串 KeyWord = KeyWord.Where(S => !string.IsNullOrEmpty(S)).ToArray(); 阅读全文
posted @ 2018-10-22 16:11 精彩一生 阅读(3204) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3