public override int GetHashCode()
        {
            int hash = 1;

            if (unknown_ != null)
            {
                hash ^= Unknown.GetHashCode();
            }
            if (unknownMovable_ != null)
            {
                hash ^= UnknownMovable.GetHashCode();
            }
            if (unknownUnmovable_ != null)
            {
                hash ^= UnknownUnmovable.GetHashCode();
            }
            if (car_ != null)
            {
                hash ^= Car.GetHashCode();
            }
            if (van_ != null)
            {
                hash ^= Van.GetHashCode();
            }
            if (truck_ != null)
            {
                hash ^= Truck.GetHashCode();
            }
            if (bus_ != null)
            {
                hash ^= Bus.GetHashCode();
            }
            if (cyclist_ != null)
            {
                hash ^= Cyclist.GetHashCode();
            }
            if (motorcyclist_ != null)
            {
                hash ^= Motorcyclist.GetHashCode();
            }
            if (tricyclist_ != null)
            {
                hash ^= Tricyclist.GetHashCode();
            }
            if (pedestrian_ != null)
            {
                hash ^= Pedestrian.GetHashCode();
            }
            if (trafficcone_ != null)
            {
                hash ^= Trafficcone.GetHashCode();
            }
            if (MaxDimChangeRatio != 0F)
            {
                hash ^= MaxDimChangeRatio.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public override int GetHashCode() =>
 EqualityComparer <T> .Default.GetHashCode(Constant) ^
 Unknown.GetHashCode() ^
 (Field != null ? Field.GetHashCode() : 0) ^
 (Property != null ? Property.GetHashCode() : 0);