摘要:
c# 的迭代器模式是通过 IEnumerator 和 IEnumerable 接口来实现的 c# 实现迭代器示例 public class CharList : IEnumerable { public string TargetStr { get; set; } public CharList(s 阅读全文
posted @ 2023-05-13 14:55
顾小凡
阅读(39)
评论(0)
推荐(0)
摘要:
//语法糖 int? count=0; //完整写法 Nullable<int> count = 0; Nullable类型定义 public partial struct Nullable<T> where T : struct { private readonly bool hasValue; 阅读全文
posted @ 2023-05-13 14:10
顾小凡
阅读(45)
评论(0)
推荐(0)