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

            if (oneDummy_ != null)
            {
                hash ^= OneDummy.GetHashCode();
            }
            hash ^= multipleDummy_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
 public void MergeFrom(ComplexMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.oneDummy_ != null)
     {
         if (oneDummy_ == null)
         {
             OneDummy = new global::Example.Complex.DummyMessage();
         }
         OneDummy.MergeFrom(other.OneDummy);
     }
     multipleDummy_.Add(other.multipleDummy_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }