Pegasus.Expressions.ChoiceExpression.ChoiceExpression C# (CSharp) Method

ChoiceExpression() public method

Initializes a new instance of the ChoiceExpression class.
public ChoiceExpression ( IEnumerable choices ) : System
choices IEnumerable The set of expressions to be used as choices.
return System
        public ChoiceExpression(IEnumerable<Expression> choices)
        {
            if (choices == null)
            {
                throw new ArgumentNullException(nameof(choices));
            }

            this.Choices = choices.ToList().AsReadOnly();
        }
ChoiceExpression