摘要:
1、关键字 enum 2、默认从0开始,可以赋值 3、可以有多个枚举值 4、案例 using System; namespace ClassAndIn { internal class Program { static void Main(string[] args) { Person person 阅读全文
posted @ 2025-06-14 09:18
市丸银
阅读(25)
评论(0)
推荐(0)
摘要:
一、Action using System; namespace ClassAndIn { internal class Program { static void Main(string[] args) { Action action = Say; action(); Action<int> ac 阅读全文
posted @ 2025-06-14 08:51
市丸银
阅读(33)
评论(0)
推荐(0)
摘要:
接口使用泛型,并被类实现接口 using System; namespace ClassAndIn { internal class Program { static void Main(string[] args) { // int 类型 Studnet<int> studnet = new St 阅读全文
posted @ 2025-06-14 08:14
市丸银
阅读(34)
评论(0)
推荐(0)

浙公网安备 33010602011771号