コード例 #1
0
ファイル: HierarchyItem.cs プロジェクト: yhtsnda/spark
        public override int GetHashCode()
        {
            var hash = _itemId.GetHashCode();

            if (_hierarchy != null)
            {
                hash ^= _hierarchy.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
ファイル: ModuleId.cs プロジェクト: yxbdali/nodejstools
        public override int GetHashCode()
        {
            int hash = 0;

            if (null != _ownerHierarchy)
            {
                hash = _ownerHierarchy.GetHashCode();
            }
            hash = hash ^ (int)_itemId;
            return(hash);
        }
コード例 #3
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()
 {
     return(_projectHierarchy.GetHashCode());
 }
コード例 #4
0
 public override int GetHashCode()
 {
     return(_hierarchy.GetHashCode() ^ _id.GetHashCode());
 }