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

            result = result && (this.Id == that.Id);
            result = result && (this.StepId == that.StepId);
            result = result && (this.FId == that.FId);
            result = result && (this.Condition.TrimOrNullify() == that.Condition.TrimOrNullify());
            result = result && (this.Value.TrimOrNullify() == that.Value.TrimOrNullify());
            result = result && (this.Operand.TrimOrNullify() == that.Operand.TrimOrNullify());
            result = result && (this.KeepWithPrevious == that.KeepWithPrevious);
            result = result && (this.Order == that.Order);
            result = result && (this.PreBracket.TrimOrNullify() == that.PreBracket.TrimOrNullify());
            result = result && (this.PostBracket.TrimOrNullify() == that.PostBracket.TrimOrNullify());
            return(result);
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Creates a new <see cref="SaqStepParamsRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="SaqStepParamsRecord" /> object instance.
        /// </returns>
        public SaqStepParamsRecord Clone()
        {
            SaqStepParamsRecord record = new SaqStepParamsRecord();

            record.Id               = this.Id;
            record.AddBy            = this.AddBy;
            record.AddDate          = this.AddDate;
            record.ModBy            = this.ModBy;
            record.ModDate          = this.ModDate;
            record.StepId           = this.StepId;
            record.FId              = this.FId;
            record.Condition        = this.Condition;
            record.Value            = this.Value;
            record.Operand          = this.Operand;
            record.KeepWithPrevious = this.KeepWithPrevious;
            record.Order            = this.Order;
            record.PreBracket       = this.PreBracket;
            record.PostBracket      = this.PostBracket;
            return(record);
        }