摘要:
参考:https://www.cnblogs.com/kubidemanong/p/10834993.html public class TreeNode { public char Char; public bool IsEnd; public int WordEndAt; private Dic 阅读全文
摘要:
在字符串前加$相当于对string.format()的简化 如: int m_a = 1; int m_b = 2; 使用string.format(): Console.WriteLine(string.format("this is a:{0},this is b:{1}"),m_a,m_b)) 阅读全文
摘要:
主要区别:1.事件在类外绑定事件只能用“+=”(“-=”解绑),不能使用‘=’绑定;如果在类内部绑定事件可以用‘=’; 2.委托在类内类外都可以用"+="、"-="、"="; 3.事件的调用(执行)只能在类内调用;委托(公有)在类内类外都可以调用 例子: class A { public deleg 阅读全文