/// <summary> /// 是否数据一致 /// </summary> protected override bool toDataEquals(BaseData data) { if (!base.toDataEquals(data)) { return(false); } RoleShowLogData mData = (RoleShowLogData)data; if (mData.showData != null) { if (this.showData == null) { return(false); } if (!this.showData.dataEquals(mData.showData)) { return(false); } } else { if (this.showData != null) { return(false); } } return(true); }
/// <summary> /// 复制(潜拷贝) /// </summary> protected override void toShadowCopy(BaseData data) { base.toShadowCopy(data); if (!(data is RoleShowLogData)) { return; } RoleShowLogData mData = (RoleShowLogData)data; this.showData = mData.showData; }
/// <summary> /// 复制(深拷贝) /// </summary> protected override void toCopy(BaseData data) { base.toCopy(data); if (!(data is RoleShowLogData)) { return; } RoleShowLogData mData = (RoleShowLogData)data; if (mData.showData != null) { this.showData = (RoleShowData)mData.showData.clone(); } else { this.showData = null; nullObjError("showData"); } }