Пример #1
0
 protected bool Equals(Instruction other)
 {
     foreach (var otherWire in other.InputWires)
     {
         if (!InputWires.Contains(otherWire))
         {
             return(false);
         }
     }
     return(Equals(CircuitGate, other.CircuitGate) && Equals(OutputWire, other.OutputWire));
 }
Пример #2
0
 public override int GetHashCode()
 {
     return(InputWires.GetHashCode() ^ CircuitGate.GetHashCode() ^ OutputWire.GetHashCode());
 }