Exemple #1
0
 public void MergeFrom(ContiRadarConf other)
 {
     if (other == null)
     {
         return;
     }
     if (other.canConf_ != null)
     {
         if (canConf_ == null)
         {
             canConf_ = new global::Apollo.Drivers.Conti_Radar.CanConf();
         }
         CanConf.MergeFrom(other.CanConf);
     }
     if (other.radarConf_ != null)
     {
         if (radarConf_ == null)
         {
             radarConf_ = new global::Apollo.Drivers.Conti_Radar.RadarConf();
         }
         RadarConf.MergeFrom(other.RadarConf);
     }
     if (other.RadarChannel.Length != 0)
     {
         RadarChannel = other.RadarChannel;
     }
 }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (canConf_ != null)
            {
                hash ^= CanConf.GetHashCode();
            }
            if (radarConf_ != null)
            {
                hash ^= RadarConf.GetHashCode();
            }
            if (RadarChannel.Length != 0)
            {
                hash ^= RadarChannel.GetHashCode();
            }
            return(hash);
        }