コード例 #1
0
        /// <summary>
        ///     Indicates whether the current <see cref="ReportParampageRecord" /> instance is equal to another <see cref="ReportParampageRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="ReportParampageRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(ReportParampageRecord 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.ParamDesc.TrimOrNullify() == that.ParamDesc.TrimOrNullify());
            return(result);
        }
コード例 #2
0
        /// <summary>
        ///     Creates a new <see cref="ReportParampageRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="ReportParampageRecord" /> object instance.
        /// </returns>
        public ReportParampageRecord Clone()
        {
            ReportParampageRecord record = new ReportParampageRecord();

            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.ParamDesc = this.ParamDesc;
            return(record);
        }