会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
只吃肉不喝酒
博客园
首页
新随笔
联系
订阅
管理
2021年5月5日
C# 类的成员的值类型和引用类型
摘要: 对于类里面的成员的值类型和引用类型的概念一直有点模糊,写个例子加深记忆 第一种 新建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)
编辑
公告