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

            if (buzz_ != null)
            {
                hash ^= Buzz.GetHashCode();
            }
            if (Where.Length != 0)
            {
                hash ^= Where.GetHashCode();
            }
            if (Who.Length != 0)
            {
                hash ^= Who.GetHashCode();
            }
            if (How.Length != 0)
            {
                hash ^= How.GetHashCode();
            }
            if (What.Length != 0)
            {
                hash ^= What.GetHashCode();
            }
            if (Why.Length != 0)
            {
                hash ^= Why.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ApplianceName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (ApplianceInstanceName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (How?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Where.GetHashCode();
         return(hashCode);
     }
 }