1 private class TestClass_4 2 { 3 public virtual int Metal { get; set; } 4 public virtual int Wood { get; set; } 5 public virtual int Water { get; set; } 6 } 7 8 private class TestClass_5 : TestClass_4 9 { 10 public override int Metal 11 { 12 get 13 { 14 return base.Metal; 15 } 16 set 17 { 18 base.Metal = value; 19 } 20 } 21 }
在我反射 TestClass_5 获取全部属性后,怎么确定哪个属性带有 override 关键字??
求助~~