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

            result = result && (this.Id == that.Id);
            result = result && (this.PsgId == that.PsgId);
            result = result && (this.EventId.TrimOrNullify() == that.EventId.TrimOrNullify());
            result = result && (this.Type == that.Type);
            result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify());
            result = result && (this.Description.TrimOrNullify() == that.Description.TrimOrNullify());
            result = result && (this.Min == that.Min);
            result = result && (this.Max == that.Max);
            result = result && (this.Order == that.Order);
            result = result && (this.ErrorMessage.TrimOrNullify() == that.ErrorMessage.TrimOrNullify());
            return(result);
        }
コード例 #2
0
        /// <summary>
        ///     Creates a new <see cref="CourseselectgroupsRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="CourseselectgroupsRecord" /> object instance.
        /// </returns>
        public CourseselectgroupsRecord Clone()
        {
            CourseselectgroupsRecord record = new CourseselectgroupsRecord();

            record.Id           = this.Id;
            record.AddDate      = this.AddDate;
            record.AddBy        = this.AddBy;
            record.ModDate      = this.ModDate;
            record.ModBy        = this.ModBy;
            record.PsgId        = this.PsgId;
            record.EventId      = this.EventId;
            record.Type         = this.Type;
            record.Name         = this.Name;
            record.Description  = this.Description;
            record.Min          = this.Min;
            record.Max          = this.Max;
            record.Order        = this.Order;
            record.ErrorMessage = this.ErrorMessage;
            return(record);
        }