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

            if (confenum_ != null)
            {
                hash ^= Confenum.GetHashCode();
            }
            if (confprimitive_ != null)
            {
                hash ^= Confprimitive.GetHashCode();
            }
            hash ^= serverList_.GetHashCode();
            hash ^= TestIntDict.GetHashCode();
            hash ^= TestStrDict.GetHashCode();
            hash ^= TestHeroes.GetHashCode();
            hash ^= listoflist_.GetHashCode();
            if (testlistAndDict_ != null)
            {
                hash ^= TestlistAndDict.GetHashCode();
            }
            hash ^= testIntList_.GetHashCode();
            hash ^= testStrList_.GetHashCode();
            hash ^= testEnumList_.GetHashCode();
            hash ^= testFloatList_.GetHashCode();
            return(hash);
        }
Esempio n. 2
0
 public bool Equals(Config other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (!object.Equals(Confenum, other.Confenum))
     {
         return(false);
     }
     if (!object.Equals(Confprimitive, other.Confprimitive))
     {
         return(false);
     }
     if (!serverList_.Equals(other.serverList_))
     {
         return(false);
     }
     if (!TestIntDict.Equals(other.TestIntDict))
     {
         return(false);
     }
     if (!TestStrDict.Equals(other.TestStrDict))
     {
         return(false);
     }
     if (!TestHeroes.Equals(other.TestHeroes))
     {
         return(false);
     }
     if (!listoflist_.Equals(other.listoflist_))
     {
         return(false);
     }
     if (!object.Equals(TestlistAndDict, other.TestlistAndDict))
     {
         return(false);
     }
     if (!testIntList_.Equals(other.testIntList_))
     {
         return(false);
     }
     if (!testStrList_.Equals(other.testStrList_))
     {
         return(false);
     }
     if (!testEnumList_.Equals(other.testEnumList_))
     {
         return(false);
     }
     if (!testFloatList_.Equals(other.testFloatList_))
     {
         return(false);
     }
     return(true);
 }