摘要: C#单例 一、懒加载 public sealed class SingletonDemo { private SingletonDemo() { } private static readonly Lazy<SingletonDemo> Lazy = new(() => new SingletonDemo() 阅读全文
posted @ 2024-01-31 15:12 xuxuzhaozhao 阅读(7) 评论(0) 推荐(0) 编辑