随笔分类 -  C#

C#值类型,引用类型 装箱拆箱、抽象类和接口、泛型委托等
摘要:https://www.cnblogs.com/LCLBook/p/11697530.html 阅读全文
posted @ 2020-03-02 21:42 漂乎兮乎 阅读(151) 评论(0) 推荐(0)
C#文本框中KeyPress事件触发Button的回车事件
摘要:private void txtMsg_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r') { this.btnSendMsg_Click(sender, e); } } 阅读全文
posted @ 2020-02-27 15:50 漂乎兮乎 阅读(2525) 评论(0) 推荐(0)
一次性清空GroupBox中所有TextBox文本框的值
摘要:foreach(Control c in groupBox1.Controls) { if(c is TextBox) { (TextBox)c.Text = ""; } } 阅读全文
posted @ 2020-02-27 15:49 漂乎兮乎 阅读(702) 评论(1) 推荐(0)
获取本机IP地址
摘要:using System.Net; using System.Net.Sockets; /// <summary> /// 获取本机IP地址 /// </summary> /// <returns>本机IP地址</returns> public static string GetLocalIP() 阅读全文
posted @ 2020-02-26 22:50 漂乎兮乎 阅读(546) 评论(0) 推荐(0)
抽象函数
摘要: 阅读全文
posted @ 2019-06-14 17:01 漂乎兮乎 阅读(390) 评论(0) 推荐(0)
静态函数
摘要: 阅读全文
posted @ 2019-06-14 17:00 漂乎兮乎 阅读(148) 评论(0) 推荐(0)
访问修饰符
摘要: 阅读全文
posted @ 2019-06-14 16:59 漂乎兮乎 阅读(129) 评论(0) 推荐(0)
构造函数
摘要: 阅读全文
posted @ 2019-06-14 16:52 漂乎兮乎 阅读(104) 评论(0) 推荐(0)
查找字词索引
摘要:using System;namespace 函数重载{ public class program { static void Main() { string msg = "你流口水弗兰克斯老师三发来看看老师是女方家老师那不就额老师编辑部艾达王老师出的" ; int count = 0; int i 阅读全文
posted @ 2019-06-04 13:48 漂乎兮乎 阅读(179) 评论(0) 推荐(0)