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