Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Processor.Length != 0)
            {
                hash ^= Processor.GetHashCode();
            }
            if (Motherboard.Length != 0)
            {
                hash ^= Motherboard.GetHashCode();
            }
            if (GraphicsCard.Length != 0)
            {
                hash ^= GraphicsCard.GetHashCode();
            }
            if (Ram.Length != 0)
            {
                hash ^= Ram.GetHashCode();
            }
            if (Os.Length != 0)
            {
                hash ^= Os.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }