1
Answer

The meaning of a line of code in C# 3.0

coco laboy

coco laboy

15y
2.6k
1

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; }

}

 

Answers (1)