07 2020 档案
摘要:泛型是泛+型,目的是为了节省代码的重复,可以复用代码。 场景: 定义了两个方法(函数) public int DisplayMyInteger(int myInt) { return myInt; } public string DisplayMyString(string myStr) { ...
阅读全文
摘要:遇到一本好书,终于把事件搞懂了。 using System; class Sender { private int myInt;//字段 public int MyInt//属性 { get{return myInt;} //获取get set { ...
阅读全文
摘要:DelegatesThe concept of delegates is a very powerful feature in many programming languages,including C#. Delegates的概念在许多编程语言中是强大的特性,包括C#. I believe that the discussion of advanced programming in C# c...
阅读全文

浙公网安备 33010602011771号