摘要:
1.委托(delegate)调用静态方法 委托类似于C++中的函数指针。 某方法仅仅在执行的时候才能确定是否被调用。 是实现事件和回调函数的基础。 面向对象,安全性高. using System; using System.IO; namespace IO { class Program { // 阅读全文
摘要:
1. c# 索引器(indexer) using System; using System.IO; namespace IO { class Program { private string[] nameList = new string[10]; static void Main(string[] 阅读全文