摘要: 委托:delegate 本质就是个密封类,与类平级 用于封装,解耦 声明语法 // 使用 delegate 关键字声明一个委托 delegate void Func(int x); 简单使用 eg.一个计算器 namespace ConsoleApp; class Program { /** * 声 阅读全文
posted @ 2024-11-28 17:12 Ritchie^._.^ 阅读(33) 评论(0) 推荐(0)