摘要: 对于类里面的成员的值类型和引用类型的概念一直有点模糊,写个例子加深记忆 第一种 新建2个类 1 class Box 2 { 3 4 public Item Item { get; set; }//引用类型 5 public Box(Item item) => this.Item = item; 6 阅读全文
posted @ 2021-05-05 08:40 只吃肉不喝酒 阅读(191) 评论(0) 推荐(0) 编辑