public virtual bool Equals(object other, List <object> checked_objects) { if (checked_objects.Contains(this)) { return(true); } checked_objects.Add(this); CodalMessage casted_other = other as CodalMessage; if (casted_other == null) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.TracingNo, casted_other.TracingNo)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.Symbol, casted_other.Symbol)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.CompanyName, casted_other.CompanyName)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.Title, casted_other.Title)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.SentDateTime, casted_other.SentDateTime)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.PublishDateTime, casted_other.PublishDateTime)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.InsCode, casted_other.InsCode)) { checked_objects.Remove(this); return(false); } checked_objects.Remove(this); return(true); }
public virtual object Clone(Dictionary <object, object> clonedObjects, bool includePrimaryKey) { CodalMessage cloned = new CodalMessage(); clonedObjects.Add(this, cloned); if (includePrimaryKey) { cloned._tracingNo = this._tracingNo; } cloned._symbol = this._symbol; cloned._companyName = this._companyName; cloned._title = this._title; cloned._sentDateTime = this._sentDateTime; cloned._publishDateTime = this._publishDateTime; cloned._insCode = this._insCode; return(cloned); }