原文链接 Several weeks ago, the .NET Blog featured a post What is .NET, and why should you choose it?. It provided a high-level overview of the platform, summarizing various components and design decision…
原视频链接 假设我们有如下 Unit 类,仅有一个 name 字段 public class Unit { public string name; } 此时我们有一个需求,所有 Unit 都希望有一个 position 字段 Unit 类可能因为各种原因无法扩展,比如在 dll 里、package 里,或者你本身不希望侵入 Unit 类进行新字段的增加,此时为了解决这个问题,我们有如下定义 pub…