String常见属性方法
摘要:1.String.Join string[] s = { "我", "爱", "中","国" }; string s1=String.Join(" ",s); Console.WriteLine(s1); //输出:我 爱 中 国 Console.WriteLine(s1.Length);//长度为
阅读全文
posted @
2020-07-31 14:43
RookieBoy666
阅读(215)
推荐(0) 编辑
获取DataGridview中某列的所有数据
摘要:/// <summary> /// /// </summary> /// <typeparam name="T"></typeparam> /// <param name="dtSource">数据集</param> /// <param name="filedName">列名</param> //
阅读全文
posted @
2020-07-23 15:01
RookieBoy666
阅读(2140)
推荐(0) 编辑
字符串的处理
摘要:/// <summary> /// 获取字符串中的数字 /// </summary> /// <param name="str">字符串</param> /// <returns>数字</returns> public static decimal GetNumber(string str) { d
阅读全文
posted @
2020-07-20 17:12
RookieBoy666
阅读(136)
推荐(0) 编辑
获取一篇文章中的单词频次(出现次数)
摘要:string text = @"var query = from info in infoList where info.AuditFlag == null || info.AuditFlag == false join emp in empList on info.SaleMan equals e
阅读全文
posted @
2020-07-18 09:50
RookieBoy666
阅读(378)
推荐(0) 编辑
Winform窗口自适应
摘要:类: class AutoSizeFormClass { //(1).声明结构,只记录窗体和其控件的初始位置和大小。 public struct controlRect { public int Left; public int Top; public int Width; public int H
阅读全文
posted @
2020-07-06 20:23
RookieBoy666
阅读(200)
推荐(0) 编辑