07 2020 档案

摘要:泛型是泛+型,目的是为了节省代码的重复,可以复用代码。 场景: 定义了两个方法(函数) public int DisplayMyInteger(int myInt) { return myInt; } public string DisplayMyString(string myStr) { ... 阅读全文
posted @ 2020-07-15 12:49 司徒无名 阅读(139) 评论(0) 推荐(0)
摘要:遇到一本好书,终于把事件搞懂了。 using System; class Sender { private int myInt;//字段 public int MyInt//属性 { get{return myInt;} //获取get set { ... 阅读全文
posted @ 2020-07-11 17:38 司徒无名 阅读(142) 评论(0) 推荐(0)
摘要:接口是指定一组函数成员而不实现它们的一种引用类型。 阅读全文
posted @ 2020-07-08 23:19 司徒无名 阅读(137) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2020-07-01 12:51 司徒无名 阅读(210) 评论(0) 推荐(0)