/// <summary> /// Creates a new <see cref="CommitteeRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="CommitteeRecord" /> object instance. /// </returns> public CommitteeRecord Clone() { CommitteeRecord record = new CommitteeRecord(); record.Id = this.Id; record.AddBy = this.AddBy; record.AddDate = this.AddDate; record.ModBy = this.ModBy; record.ModDate = this.ModDate; record.RcvFrom = this.RcvFrom; record.RcvDate = this.RcvDate; record.Name = this.Name; record.Status = this.Status; record.Type = this.Type; record.StartDate = this.StartDate; record.Category = this.Category; record.Group = this.Group; record.DisId = this.DisId; record.ProdId = this.ProdId; record.BrId = this.BrId; record.ExtUrl = this.ExtUrl; record.ShowOnOrg = this.ShowOnOrg; record.NoPeople = this.NoPeople; return(record); }
/// <summary> /// Indicates whether the current <see cref="CommitteeRecord" /> instance is equal to another <see cref="CommitteeRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="CommitteeRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(CommitteeRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); result = result && (this.Status.TrimOrNullify() == that.Status.TrimOrNullify()); result = result && (this.Type.TrimOrNullify() == that.Type.TrimOrNullify()); result = result && (this.StartDate == that.StartDate); result = result && (this.Category.TrimOrNullify() == that.Category.TrimOrNullify()); result = result && (this.Group.TrimOrNullify() == that.Group.TrimOrNullify()); result = result && (this.DisId.TrimOrNullify() == that.DisId.TrimOrNullify()); result = result && (this.ProdId.TrimOrNullify() == that.ProdId.TrimOrNullify()); result = result && (this.BrId.TrimOrNullify() == that.BrId.TrimOrNullify()); result = result && (this.ExtUrl.TrimOrNullify() == that.ExtUrl.TrimOrNullify()); result = result && (this.ShowOnOrg == that.ShowOnOrg); result = result && (this.NoPeople == that.NoPeople); return(result); }