2020年2月4日
摘要: 1.委托(delegate)调用静态方法 委托类似于C++中的函数指针。 某方法仅仅在执行的时候才能确定是否被调用。 是实现事件和回调函数的基础。 面向对象,安全性高. using System; using System.IO; namespace IO { class Program { // 阅读全文
posted @ 2020-02-04 17:41 Tanqurey 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1. c# 索引器(indexer) using System; using System.IO; namespace IO { class Program { private string[] nameList = new string[10]; static void Main(string[] 阅读全文
posted @ 2020-02-04 15:14 Tanqurey 阅读(90) 评论(0) 推荐(0) 编辑