public override int GetHashCode()
 {
     unchecked
     {
         return((SwitchId.GetHashCode() * 397) ^ SensorId.GetHashCode());
     }
 }
 public bool Equals(SwitchToSensorBinding other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(SwitchId.Equals(other.SwitchId) && SensorId.Equals(other.SensorId));
 }
 public override int GetHashCode()
 {
     return(SwitchId != null ? SwitchId.GetHashCode() : 0);
 }