摘要: 对于不可变类型(immutable types),我们可以通过只读自动属性来创建(read-only auto-properties),也就是对属性只设置 get 访问器: public string FirstName { get; } public string LastName { get; 阅读全文
posted @ 2020-09-20 23:32 Levid_GC 阅读(685) 评论(0) 推荐(0) 编辑