/// <summary> /// Creates a new <see cref="UserCredentialRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="UserCredentialRecord" /> object instance. /// </returns> public UserCredentialRecord Clone() { UserCredentialRecord record = new UserCredentialRecord(); record.Id = this.Id; record.User = this.User; record.Salt = this.Salt; record.Pass = this.Pass; record.Modified = this.Modified; return(record); }
/// <summary> /// Indicates whether the current <see cref="UserCredentialRecord" /> instance is equal to another <see cref="UserCredentialRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="UserCredentialRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(UserCredentialRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.User == that.User); result = result && (this.Salt == that.Salt); result = result && (this.Pass == that.Pass); result = result && (this.Modified == that.Modified); return(result); }