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

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

            record.Id       = this.Id;
            record.AddDate  = this.AddDate;
            record.AddBy    = this.AddBy;
            record.ModDate  = this.ModDate;
            record.ModBy    = this.ModBy;
            record.PageName = this.PageName;
            record.PagePath = this.PagePath;
            record.Section  = this.Section;
            return(record);
        }