예제 #1
0
 public ParameterlessConditionExpression(IParameterlessResultExpression <bool> condition,
                                         IParameterlessResultExpression <TResult> ifExpression,
                                         IParameterlessResultExpression <TResult> elseExpression)
     : base(Native.Expression.Condition(condition.GetNativeExpression(), ifExpression.GetNativeExpression(),
                                        elseExpression.GetNativeExpression()))
 {
 }
 internal ParameterlessBinaryExpression(
     Func <Native.Expression, Native.Expression, Native.BinaryExpression> nativeExpression,
     IParameterlessResultExpression <T> left,
     IParameterlessResultExpression <T> right)
     : base(nativeExpression(left.GetNativeExpression(), right.GetNativeExpression()))
 {
 }
예제 #3
0
 internal BinaryExpression(
     Func <Native.Expression, Native.Expression, Native.BinaryExpression> nativeExpression,
     IParameterlessResultExpression <TCurrent> left,
     IResultExpression <TPrevious, TCurrent> right)
     : base(nativeExpression(left.GetNativeExpression(), right.GetNativeExpression()))
 {
     _container = new SingleParameterCompilableContainer <TPrevious, TResult>(right.GetParameter());
 }
예제 #4
0
 public ConditionExpression(IResultExpression <TConditionParameter, bool> condition,
                            IParameterlessResultExpression <TResult> ifExpression,
                            IParameterlessResultExpression <TResult> elseExpression)
     : base(Native.Expression.Condition(condition.GetNativeExpression(), ifExpression.GetNativeExpression(),
                                        elseExpression.GetNativeExpression()))
 {
     _parameter = condition.GetParameter();
 }
예제 #5
0
 public ConstantConditionExpression(IParameterlessResultExpression <bool> condition,
                                    IParameterlessResultExpression <TResult> ifExpression,
                                    IResultExpression <TParameter, TResult> elseExpression)
     : base(Native.Expression.Condition(condition.GetNativeExpression(), ifExpression.GetNativeExpression(),
                                        elseExpression.GetNativeExpression()))
 {
     _container = new SingleParameterCompilableContainer <TParameter, TResult>(elseExpression.GetParameter());
 }
 internal ParameterlessUnaryExpression(
     Func <Native.Expression, Native.UnaryExpression> nativeExpression,
     IParameterlessResultExpression <T> constant) : base(nativeExpression(constant.GetNativeExpression()))
 {
 }