public bool Equals(StateVector <T> other) { return(this.Source.Equals(other.Source) && this.Destination.Equals(other.Destination)); }
public StateContext(IStateMachine machine, IStateDiagram <TKey, TValue> diagram, TKey key, StateVector <TValue> state, string description) { this.Machine = machine ?? throw new ArgumentNullException(nameof(machine)); this.Diagram = diagram ?? throw new ArgumentNullException(nameof(diagram)); this.Key = key; this.State = state; this.Description = description; this.Parameters = new ParameterCollection(machine); }
public bool Equals(StateVector <T> other) { return(this.Origin.Equals(other.Origin) && this.Destination.Equals(other.Destination)); }