Hello!
In the following code, is Trigger a variable and also a property (last line of code)? Thank you!
public class Transition<T, TState> : MarshalByRefObject
where T : IEquatable<T>
where TState : IEquatable<TState>
{
public Transition(Action<ActionParameter<T>> actionToRun, State<TState> start, EventToMap<T> eventToCheck, State<TState> end)
{
this.ActionToExecute = actionToRun;
this.EndState = end;
this.Trigger = eventToCheck;
this.StartState = start;
}
public Action<ActionParameter<T>> ActionToExecute { get; set; }
public State<TState> EndState { get; set; }
public State<TState> StartState { get; set; }
public EventToMap<T> Trigger { get; set; }
}