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

            result = result && (this.Id == that.Id);
            result = result && (this.ObjId == that.ObjId);
            result = result && (this.PrincipalId == that.PrincipalId);
            result = result && (this.Display == that.Display);
            return(result);
        }
Exemple #2
0
        /// <summary>
        ///     Creates a new <see cref="ScreenObjectDisplayRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="ScreenObjectDisplayRecord" /> object instance.
        /// </returns>
        public ScreenObjectDisplayRecord Clone()
        {
            ScreenObjectDisplayRecord record = new ScreenObjectDisplayRecord();

            record.Id          = this.Id;
            record.AddDate     = this.AddDate;
            record.AddBy       = this.AddBy;
            record.ModDate     = this.ModDate;
            record.ModBy       = this.ModBy;
            record.ObjId       = this.ObjId;
            record.PrincipalId = this.PrincipalId;
            record.Display     = this.Display;
            return(record);
        }