/// <summary> /// Indicates whether the current <see cref="ScreenObjectEntryRecord" /> instance is equal to another <see cref="ScreenObjectEntryRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="ScreenObjectEntryRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(ScreenObjectEntryRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.ObjId == that.ObjId); result = result && (this.ItemNormal.TrimOrNullify() == that.ItemNormal.TrimOrNullify()); result = result && (this.ItemCustom.TrimOrNullify() == that.ItemCustom.TrimOrNullify()); result = result && (this.ItemHide == that.ItemHide); return(result); }
/// <summary> /// Creates a new <see cref="ScreenObjectEntryRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="ScreenObjectEntryRecord" /> object instance. /// </returns> public ScreenObjectEntryRecord Clone() { ScreenObjectEntryRecord record = new ScreenObjectEntryRecord(); record.Id = this.Id; record.AddDate = this.AddDate; record.AddBy = this.AddBy; record.ModDate = this.ModDate; record.ModBy = this.ModBy; record.ObjId = this.ObjId; record.ItemNormal = this.ItemNormal; record.ItemCustom = this.ItemCustom; record.ItemHide = this.ItemHide; return(record); }