示例#1
0
        /// <summary>
        ///     Indicates whether the current <see cref="UserGroupRecord" /> instance is equal to another <see cref="UserGroupRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="UserGroupRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(UserGroupRecord that)
        {
            Boolean result = true;

            result = result && (this.Id == that.Id);
            result = result && (this.PrincipalId == that.PrincipalId);
            return(result);
        }
示例#2
0
        /// <summary>
        ///     Creates a new <see cref="UserGroupRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="UserGroupRecord" /> object instance.
        /// </returns>
        public UserGroupRecord Clone()
        {
            UserGroupRecord record = new UserGroupRecord();

            record.Id          = this.Id;
            record.PrincipalId = this.PrincipalId;
            return(record);
        }