AutoCAD.Net/C#.Net QQ群:193522571 利用反射将父类中的属性传递到子类中,实测效率不高
foreach (PropertyInfo info in saddle.GetType().GetProperties()) { try { string objString = info.Name; object objValue = saddle.GetType().GetProperty(objString).GetValue(saddle, null); this.GetType().GetProperty(objString).SetValue(this, objValue, null); } catch { } }