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

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

            record.Id      = this.Id;
            record.AddDate = this.AddDate;
            record.AddBy   = this.AddBy;
            record.ModDate = this.ModDate;
            record.ModBy   = this.ModBy;
            record.Name    = this.Name;
            return(record);
        }