Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Bot;
         hashCode = (hashCode * 397) ^ LowDestination.GetHashCode();
         hashCode = (hashCode * 397) ^ HighDestination.GetHashCode();
         return(hashCode);
     }
 }
Example #2
0
 protected bool Equals(BotInstruction other)
 {
     return(Bot == other.Bot && LowDestination.Equals(other.LowDestination) && HighDestination.Equals(other.HighDestination));
 }