public override bool Equals(Event other) { if (!(other is StateEvent)) { return(false); } StateEvent otherStateEvent = (StateEvent)other; return(state.Equals(otherStateEvent.state) && action == otherStateEvent.action); }
public override bool Equals(Event other) { if (!(other is TransitionEvent)) { return(false); } TransitionEvent otherTransitionEvent = (TransitionEvent)other; return(from.Equals(otherTransitionEvent.from) && to.Equals(otherTransitionEvent.to) && action == otherTransitionEvent.action); }