Remotion.Linq.SqlBackend.SqlStatementModel.SqlSpecificExpressions.SqlCaseExpression.CreateIfThenElse C# (CSharp) Méthode

CreateIfThenElse() public static méthode

public static CreateIfThenElse ( Type type, Expression test, Expression thenCase, Expression elseCase ) : SqlCaseExpression
type System.Type
test System.Linq.Expressions.Expression
thenCase System.Linq.Expressions.Expression
elseCase System.Linq.Expressions.Expression
Résultat SqlCaseExpression
    public static SqlCaseExpression CreateIfThenElse (Type type, Expression test, Expression thenCase, Expression elseCase)
    {
      ArgumentUtility.CheckNotNull ("type", type);
      ArgumentUtility.CheckNotNull ("test", test);
      ArgumentUtility.CheckNotNull ("thenCase", thenCase);
      ArgumentUtility.CheckNotNull ("elseCase", elseCase);

      return new SqlCaseExpression (type, new[] { new CaseWhenPair (test, thenCase) }, elseCase);
    }