coco laboy

coco laboy

  • NA
  • 1
  • 0

The meaning of a line of code in C# 3.0

Jan 7 2009 6:13 PM

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)