假定一个类,类名是EtyBase,另一个类类名是EtyTwo,EtyTwo继承自EtyBase。现在要求EtyTwo的属性值从一个EtyBase中复制过来传统做法是 代码如下:View Code public void CopyEty(EtyBase from, EtyBase to) {to.AccStatus = from.AccStatus;to.Alarm = from.Alarm;to.AlarmType = from.AlarmType;to.CarNum = from.CarNum;to.DevNum = from.DevNum;to.DeviceNum = from.D