是否可以像这样将普通类与部分类结合起来:
public class ClassA
{
public string PropertyA {get; set;}
}
public partial class ClassA
{
public string PropertyB {get; set;}
}
代码的结果应该是:
var instance = new ClassA();
instance.PropertyA = "Something";
instance.PropertyB = "Something else";
C# 是否支持这种模式?
谢谢大家!