18 lines
436 B
C#
18 lines
436 B
C#
using System.Linq.Expressions;
|
|
|
|
namespace Connected.Expressions;
|
|
public sealed class IfCommandExpression : CommandExpression
|
|
{
|
|
public IfCommandExpression(Expression check, Expression ifTrue, Expression ifFalse)
|
|
: base(DatabaseExpressionType.If, ifTrue.Type)
|
|
{
|
|
Check = check;
|
|
IfTrue = ifTrue;
|
|
IfFalse = ifFalse;
|
|
}
|
|
|
|
public Expression Check { get; }
|
|
public Expression IfTrue { get; }
|
|
public Expression IfFalse { get; }
|
|
}
|