Beispiel #1
0
        /// <summary>
        /// Returns a value that indicates if this structure is equal to another.
        /// </summary>
        /// <param name="obj">Structure with which to compare.</param>
        /// <returns>
        /// Result of the comparison of equality.
        /// </returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (!(obj is PropertyKey))
            {
                return(false);
            }

            var other = (PropertyKey)obj;

            return
                (PropertyId.Equals(other.PropertyId) &&
                 StructureId.Equals(other.StructureId) &&
                 PropertyUnit.Equals(other.PropertyUnit));
        }