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); }
public void MergeFrom(Config other) { if (other == null) { return; } if (other.confenum_ != null) { if (confenum_ == null) { confenum_ = new global::UF.Config.ConfTestEnum(); } Confenum.MergeFrom(other.Confenum); } if (other.confprimitive_ != null) { if (confprimitive_ == null) { confprimitive_ = new global::UF.Config.ConfTestPrimitive(); } Confprimitive.MergeFrom(other.Confprimitive); } serverList_.Add(other.serverList_); testIntDict_.Add(other.testIntDict_); testStrDict_.Add(other.testStrDict_); testHeroes_.Add(other.testHeroes_); listoflist_.Add(other.listoflist_); if (other.testlistAndDict_ != null) { if (testlistAndDict_ == null) { testlistAndDict_ = new global::UF.Config.ConfTestListAndDict(); } TestlistAndDict.MergeFrom(other.TestlistAndDict); } testIntList_.Add(other.testIntList_); testStrList_.Add(other.testStrList_); testEnumList_.Add(other.testEnumList_); testFloatList_.Add(other.testFloatList_); }