Skip to content

The meaning of a line of code in C# 3.0

coco laboy

Asked Jan 7, 2009, 1:13 PM EST1 answer
Share
LinkedInX

Hello!

  In the following code, is Trigger a variable and also a property (last line of code)? Thank you!

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

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 1 short reply
    • Mahesh Chand
      0
      Property
      0