随笔分类 -  c#

摘要:如题 阅读全文
posted @ 2020-05-18 22:11 流星曳尾 阅读(224) 评论(0) 推荐(0)
摘要:正则表达式:用来匹配某类文本(Regular Expresstion) 正则表达式主要元素:字符、次数、位置限定、对分组命名、选项 阅读全文
posted @ 2020-05-15 14:45 流星曳尾 阅读(142) 评论(0) 推荐(0)
摘要:如题 阅读全文
posted @ 2020-05-14 22:27 流星曳尾 阅读(98) 评论(0) 推荐(0)
摘要:即先画到内存图上,后一次性画到窗口上。(防止闪烁) 后控件有DoubleBuffered()属性。 阅读全文
posted @ 2020-05-14 20:39 流星曳尾 阅读(646) 评论(0) 推荐(0)
摘要:如题 阅读全文
posted @ 2020-05-13 21:34 流星曳尾 阅读(226) 评论(0) 推荐(0)
摘要:定义一个类的静态方法(在静态方法中可定义满足某种条件,throw new AException (message)) 自定义异常 public class AException : ApplicationException { public AException(string message):ba 阅读全文
posted @ 2020-05-09 20:54 流星曳尾 阅读(129) 评论(0) 推荐(0)
摘要:try{} catch(AException e1){} catch(BException e2){} catch(Exception e){} finally{} 注:越具体的异常越写在前面。 阅读全文
posted @ 2020-05-09 20:05 流星曳尾 阅读(114) 评论(0) 推荐(0)
摘要:void btn_Click(object sender, EventArgs e){ Button btn = sender as Button; //当前点中的按钮} 阅读全文
posted @ 2020-05-06 21:50 流星曳尾 阅读(835) 评论(0) 推荐(0)