Beispiel #1
0
        public override int GetHashCode()
        {
            int hashCode = -1795512632;

            hashCode = hashCode * -1521134295 + StartingPosition.GetHashCode();
            hashCode = hashCode * -1521134295 + EndingPosition.GetHashCode();
            return(hashCode);
        }
Beispiel #2
0
        /// <summary>
        ///     Returns a hash code for this instance.
        /// </summary>
        /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = ProjectName != null?ProjectName.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (StartingPosition != null ? StartingPosition.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (EndingPosition != null ? EndingPosition.GetHashCode() : 0);
                return(hashCode);
            }
        }