Expressive.Elements.IfThenElement.IfThenElement C# (CSharp) Method

IfThenElement() public method

public IfThenElement ( Expression condition, IList then, IList @else ) : System
condition System.Linq.Expressions.Expression
then IList
@else IList
return System
        public IfThenElement(Expression condition, IList<IElement> then, IList<IElement> @else)
        {
            if (condition.Type != typeof(bool))
                throw new ArgumentException("Expected condition to be boolean.", "condition");

            this.Condition = condition;
            this.Then = then;
            this.Else = @else;
        }