Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Magic.Length != 0)
            {
                hash ^= Magic.GetHashCode();
            }
            if (IrVersion != 0)
            {
                hash ^= IrVersion.GetHashCode();
            }
            if (IrVersionPrerelease.Length != 0)
            {
                hash ^= IrVersionPrerelease.GetHashCode();
            }
            if (IrBuildMetadata.Length != 0)
            {
                hash ^= IrBuildMetadata.GetHashCode();
            }
            if (Domain.Length != 0)
            {
                hash ^= Domain.GetHashCode();
            }
            if (OpsetVersion != 0L)
            {
                hash ^= OpsetVersion.GetHashCode();
            }
            if (DocString.Length != 0)
            {
                hash ^= DocString.GetHashCode();
            }
            hash ^= operator_.GetHashCode();
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Magic.Length != 0)
            {
                hash ^= Magic.GetHashCode();
            }
            if (IrVersion != 0L)
            {
                hash ^= IrVersion.GetHashCode();
            }
            if (IrVersionPrerelease.Length != 0)
            {
                hash ^= IrVersionPrerelease.GetHashCode();
            }
            if (IrBuildMetadata.Length != 0)
            {
                hash ^= IrBuildMetadata.GetHashCode();
            }
            if (Domain.Length != 0)
            {
                hash ^= Domain.GetHashCode();
            }
            if (OpsetVersion != 0L)
            {
                hash ^= OpsetVersion.GetHashCode();
            }
            if (DocString.Length != 0)
            {
                hash ^= DocString.GetHashCode();
            }
            hash ^= operator_.GetHashCode();
            hash ^= functions_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }