Beispiel #1
0
        public override int GetHashCode()
        {
            var hash = _itemId.GetHashCode();

            if (_hierarchy != null)
            {
                hash ^= _hierarchy.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 0;

            if (null != _ownerHierarchy)
            {
                hash = _ownerHierarchy.GetHashCode();
            }
            hash = hash ^ (int)_itemId;
            return(hash);
        }
 /// <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()
 {
     return(_projectHierarchy.GetHashCode());
 }
 public override int GetHashCode()
 {
     return(_hierarchy.GetHashCode() ^ _id.GetHashCode());
 }