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

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.PackId.TrimOrNullify() == that.PackId.TrimOrNullify());
            result = result && (this.LitId.TrimOrNullify() == that.LitId.TrimOrNullify());
            result = result && (this.Seq == that.Seq);
            result = result && (this.SmsId == that.SmsId);
            result = result && (this.IcmId == that.IcmId);
            return(result);
        }
예제 #2
0
        /// <summary>
        ///     Creates a new <see cref="PackXrefRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="PackXrefRecord" /> object instance.
        /// </returns>
        public PackXrefRecord Clone()
        {
            PackXrefRecord record = new PackXrefRecord();

            record.Id      = this.Id;
            record.Lock    = this.Lock;
            record.AddDate = this.AddDate;
            record.AddBy   = this.AddBy;
            record.ModDate = this.ModDate;
            record.ModBy   = this.ModBy;
            record.RcvDate = this.RcvDate;
            record.RcvFrom = this.RcvFrom;
            record.PackId  = this.PackId;
            record.LitId   = this.LitId;
            record.Seq     = this.Seq;
            record.SmsId   = this.SmsId;
            record.IcmId   = this.IcmId;
            return(record);
        }