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