/// <summary> /// Indicates whether the current <see cref="ScreenObjectColumnRecord" /> instance is equal to another <see cref="ScreenObjectColumnRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="ScreenObjectColumnRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(ScreenObjectColumnRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.ObjId == that.ObjId); result = result && (this.Ordinal == that.Ordinal); result = result && (this.Custom.TrimOrNullify() == that.Custom.TrimOrNullify()); result = result && (this.Exportable == that.Exportable); result = result && (this.Visible == that.Visible); return(result); }
/// <summary> /// Creates a new <see cref="ScreenObjectColumnRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="ScreenObjectColumnRecord" /> object instance. /// </returns> public ScreenObjectColumnRecord Clone() { ScreenObjectColumnRecord record = new ScreenObjectColumnRecord(); 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.Ordinal = this.Ordinal; record.Custom = this.Custom; record.Exportable = this.Exportable; record.Visible = this.Visible; return(record); }