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

            hash ^= RadarObstacle.GetHashCode();
            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (ErrorCode != 0)
            {
                hash ^= ErrorCode.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public bool Equals(RadarObstacles other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (!RadarObstacle.Equals(other.RadarObstacle))
     {
         return(false);
     }
     if (!object.Equals(Header, other.Header))
     {
         return(false);
     }
     if (ErrorCode != other.ErrorCode)
     {
         return(false);
     }
     return(true);
 }