コード例 #1
0
        public override int GetHashCode()
        {
            int hashCode = 19;

            if (_comments != null)
            {
                hashCode ^= _comments.GetHashCode();
            }
            if (_assembly != null)
            {
                hashCode ^= _assembly.GetHashCode();
            }

            return(hashCode);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hashCode = 41;

            if (_sourcePath != null)
            {
                hashCode ^= _sourcePath.GetHashCode();
            }
            if (_includeSet != null)
            {
                hashCode ^= _includeSet.GetHashCode();
            }

            return(hashCode);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hashCode = 53;

            if (_name != null)
            {
                hashCode ^= _name.GetHashCode();
            }
            if (_path != null)
            {
                hashCode ^= _path.GetHashCode();
            }

            return(hashCode);
        }
コード例 #4
0
        public override int GetHashCode()
        {
            int hashCode = 17;

            if (_itemId != null)
            {
                hashCode ^= _itemId.GetHashCode();
            }
            if (_itemPath != null)
            {
                hashCode ^= _itemPath.GetHashCode();
            }
            if (_altText != null)
            {
                hashCode ^= _altText.GetHashCode();
            }
            hashCode ^= (int)_itemType;

            return(hashCode);
        }
コード例 #5
0
        public override int GetHashCode()
        {
            int hashCode = 29;

            if (_name != null)
            {
                hashCode ^= _name.GetHashCode();
            }
            if (_transformFile != null)
            {
                hashCode ^= _transformFile.GetHashCode();
            }
            if (_tag != null)
            {
                hashCode ^= _tag.GetHashCode();
            }
            if (_description != null)
            {
                hashCode ^= _description.GetHashCode();
            }

            return(hashCode);
        }
コード例 #6
0
ファイル: ScriptItem.cs プロジェクト: paulushub/SandAssists
        public override int GetHashCode()
        {
            int hashCode = 67;

            if (_name != null)
            {
                hashCode ^= _name.GetHashCode();
            }
            hashCode ^= _scriptFile.GetHashCode();
            if (_description != null)
            {
                hashCode ^= _description.GetHashCode();
            }
            if (_tag != null)
            {
                hashCode ^= _tag.GetHashCode();
            }
            if (_condition != null)
            {
                hashCode ^= _condition.GetHashCode();
            }

            return(hashCode);
        }