コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (gbHandle_ != null)
            {
                hash ^= GbHandle.GetHashCode();
            }
            hash ^= attributes_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
 public void MergeFrom(SavedAttributes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.gbHandle_ != null)
     {
         if (gbHandle_ == null)
         {
             gbHandle_ = new global::D3.GameBalance.Handle();
         }
         GbHandle.MergeFrom(other.GbHandle);
     }
     attributes_.Add(other.attributes_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }