/// <summary> /// 复制(潜拷贝) /// </summary> protected override void toShadowCopy(BaseData data) { if (!(data is WorkCompleteData)) { return; } WorkCompleteData mData = (WorkCompleteData)data; this.workInstanceID = mData.workInstanceID; this.senderIndex = mData.senderIndex; }
/// <summary> /// 是否数据一致 /// </summary> protected override bool toDataEquals(BaseData data) { WorkCompleteData mData = (WorkCompleteData)data; if (this.workInstanceID != mData.workInstanceID) { return(false); } if (this.senderIndex != mData.senderIndex) { return(false); } return(true); }