随笔分类 -  c#知识点

摘要:https://blog.csdn.net/caixiexin/article/details/5799715 Control. Refresh 强制控件使其工作区无效并立即重绘自己和任何子控件。 什么意思呢,我们用实例看会很快明白: private void button1_Click(objec 阅读全文
posted @ 2022-11-18 14:25 yinghualeihenmei 阅读(187) 评论(0) 推荐(0) 编辑
摘要:https://www.zhihu.com/question/36306744 简单说,因为某些场合并不能传输或者储存二进制流。 比如,如果一个传输协议是基于ASCII文本的,那么它就不能传输二进制流,那你要将二进制流传输就得编码。常见的诸如 http 协议的 url 就是纯文本的,不能直接放二进制 阅读全文
posted @ 2022-11-17 11:18 yinghualeihenmei 阅读(27) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/rainbow70626/p/4739161.html https://blog.csdn.net/hb571843232/article/details/108337840 Application.DoEvents()的作用:处理当前在消息队列中的所 阅读全文
posted @ 2022-11-15 11:15 yinghualeihenmei 阅读(41) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/hdhai9451/article/details/46455813 https://www.cnblogs.com/wyt007/p/8023391.html 在开发,有时为了验证程序运行是否正确,通常要写日志来记录操作,在一个日志类里,通常有两个方法: 阅读全文
posted @ 2022-11-14 13:41 yinghualeihenmei 阅读(2225) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/xiaotiannet/p/3510586.html 符号 ASCII码 意义 \n 10 换行 \r 13 回车CR '\r' 回车,回到当前行的行首,而不会换到下一行,如果接着输出的话,本行以前的内容会被逐一覆盖; '\n' 换行,换到当前位置的下 阅读全文
posted @ 2022-11-14 10:51 yinghualeihenmei 阅读(451) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/knqiufan/article/details/81359742 今天写代码的时候用到ImportRow()向DataTable中添加记录,代码如下: DataTable dt = datatable;DataRow dr = dt.NewRow();d 阅读全文
posted @ 2022-11-14 09:43 yinghualeihenmei 阅读(164) 评论(0) 推荐(0) 编辑
摘要:https://zhidao.baidu.com/question/1861691860885843707.html 在面向对象的编程中,通常把用类创建对象的过程称为实例化,其格式如下: 类名 对象名 = new 类名(参数1,参数2...参数n) (这里,“类名”这个类名实例化成了“对象名”这个对 阅读全文
posted @ 2022-11-14 09:27 yinghualeihenmei 阅读(62) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_43304572/article/details/84260450 / https://blog.csdn.net/2303_78156670/article/details/136754280 / http://t.zoukankan.com/ya 阅读全文
posted @ 2022-11-13 22:47 yinghualeihenmei 阅读(284) 评论(0) 推荐(0) 编辑
摘要:https://www.nhooo.com/note/qa07nr.html ElementAt()是C#中的System.Linq方法,用于获取和显示特定索引处的元素。 以下是我们的字符串数组- string[] arr = { "One", "Two", "Three", "Four", "Fi 阅读全文
posted @ 2022-11-13 22:40 yinghualeihenmei 阅读(1930) 评论(0) 推荐(0) 编辑
摘要:https://www.likecs.com/show-205081943.html#sc=466.6666564941406 KeyValuePair 和 Dictionary 的关系 1、KeyValuePair a、KeyValuePair 是一个结构体(struct); b、KeyValue 阅读全文
posted @ 2022-11-13 22:36 yinghualeihenmei 阅读(46) 评论(0) 推荐(0) 编辑
摘要:http://t.zoukankan.com/dudu837-p-1852413.html https://zhidao.baidu.com/question/1923939285715385947.html keyValuePair翻译过来就是键值对,也就是一个一对一的数据类型,它是值类型,可以理 阅读全文
posted @ 2022-11-13 22:36 yinghualeihenmei 阅读(1959) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/lcxBlog/p/4508031.html 1. 使用StringBuilder的好处 由于string对象是不可更改的,我们每次使用string类的方法时,都会在内存中重新创建一个新的string对象,这时候就要为该对象分配内存空间了。如果在一段代 阅读全文
posted @ 2022-11-13 22:31 yinghualeihenmei 阅读(365) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/n_moling/article/details/78953658 Remove(int startIndex): 删除此字符串中从指定位置到最后位置的所有字符。 Remove(int startIndex, int length): 从此实例中的指定位置 阅读全文
posted @ 2022-11-13 22:17 yinghualeihenmei 阅读(42) 评论(0) 推荐(0) 编辑
摘要:https://www.freesion.com/article/7574843646/ 可以看出耗时差距微乎其微,并且以上代码在不同硬件环境下所耗时也有些许变化。 阅读全文
posted @ 2022-11-13 22:12 yinghualeihenmei 阅读(28) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/dmlk31/article/details/111206272 .说明 1、必须包含名空间 System.Collection.Generic2、Dictionary里面的每一个元素都是一个键值对(由二个元素组成:键和值)3、键必须是唯一的,而值不需要唯 阅读全文
posted @ 2022-11-13 21:38 yinghualeihenmei 阅读(595) 评论(0) 推荐(0) 编辑
摘要:MTM_Timer.Enabled = true; MTM_Timer.Start(); 今天遇到一个问题,以前运行的好好的服务,重新覆盖后就不跑了,后来将Timer.Start();注销掉就好了。 有网友说MTM_Timer.Enabled = true;与MTM_Timer.Start();是一 阅读全文
posted @ 2022-11-12 15:58 yinghualeihenmei 阅读(90) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/bruce1992/p/15028817.html 用c#中创建一个windows服务非常简单,与windows服务相关的类都在System.ServiceProcess命名空间下。 每个服务都需要继承自ServiceBase类,并重写相应的启动、暂停 阅读全文
posted @ 2022-11-12 14:33 yinghualeihenmei 阅读(237) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/i-cheng/p/10018801.html 1.System.Timers命名空间下的Timer类。System.Timers.Timer类:定义一个System.Timers.Timer对象,然后绑定Elapsed事件,通过Start()方法来启 阅读全文
posted @ 2022-11-12 14:13 yinghualeihenmei 阅读(420) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/mahaisong/archive/2011/07/18/2109364.html system.ServiceProcess 命名空间提供用于实现、安装和控制 Windows 服务应用程序的类。服务是长期运行的可执行文件,其运行没有用户界面。实现服务 阅读全文
posted @ 2022-11-11 14:48 yinghualeihenmei 阅读(19) 评论(0) 推荐(0) 编辑
摘要:https://wenda.so.com/q/1371555124068874?src=140&q=c%23%E5%AE%9A%E6%97%B6%E7%A8%8B%E5%BA%8F https://blog.csdn.net/yudehui/article/details/9454947 如果是we 阅读全文
posted @ 2022-11-11 13:56 yinghualeihenmei 阅读(37) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示