Remotion.Linq.SqlBackend.SqlStatementModel.SqlSpecificExpressions.SqlCaseExpression.CaseWhenPair.CaseWhenPair C# (CSharp) Method

CaseWhenPair() public method

public CaseWhenPair ( Expression when, Expression then ) : System
when System.Linq.Expressions.Expression
then System.Linq.Expressions.Expression
return System
      public CaseWhenPair (Expression when, Expression then)
      {
        ArgumentUtility.CheckNotNull ("when", when);
        ArgumentUtility.CheckNotNull ("then", then);

        if (!BooleanUtility.IsBooleanType (when.Type))
          throw new ArgumentException ("The WHEN expression's type must be boolean.", "when");

        _when = when;
        _then = then;
      }