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