Example #1
0
        /// <summary>
        /// Equalses the specified key by business value.
        /// </summary>
        /// <param name="key">The compared key.</param>
        /// <returns>Returns true if keys are equal.</returns>
        public bool BusinessEquals(SimplifiedKey <V> key)
        {
            if (ReferenceEquals(null, key))
            {
                return(false);
            }

            if (ReferenceEquals(this, key))
            {
                return(true);
            }

            return(this.GenerateBussinessKeyValue().Equals(key.GenerateBussinessKeyValue()));
        }
Example #2
0
        /// <summary>
        /// Equalses the specified key by simplified value.
        /// </summary>
        /// <param name="key">The compared key.</param>
        /// <returns>Returns true if keys are equal.</returns>
        public bool Equals(SimplifiedKey <V> key)
        {
            if (ReferenceEquals(null, key))
            {
                return(false);
            }

            if (ReferenceEquals(this, key))
            {
                return(true);
            }

            return(key.SimplifiedValue.Equals(this.SimplifiedValue));
        }