static private BlockVoid ( Expression expressions ) : BlockExpression | ||
expressions | Expression | |
Результат | BlockExpression |
public TryStatementBuilder Fault(params Expression[] body) { ContractUtils.RequiresNotNullItems(body, nameof(body)); if (_finally != null) { throw Error.CannotHaveFaultAndFinally(); } if (_fault != null) { throw Error.FaultAlreadyDefined(); } _fault = body.Length == 1 ? body[0] : Utils.BlockVoid(body); return(this); }
public TryStatementBuilder Filter(ParameterExpression holder, Expression condition, params Expression[] body) { return(Filter(holder, condition, Utils.BlockVoid(body))); }
public TryStatementBuilder Finally(params Expression[] body) { return(Finally(Utils.BlockVoid(body))); }
public TryStatementBuilder Catch(ParameterExpression holder, params Expression[] body) { return(Catch(holder, Utils.BlockVoid(body))); }
public TryStatementBuilder Filter(Type type, Expression condition, params Expression[] body) { return(Filter(type, condition, Utils.BlockVoid(body))); }
public TryStatementBuilder Catch(Type type, params Expression[] body) { return(Catch(type, Utils.BlockVoid(body))); }
public static TryStatementBuilder Try(params Expression[] body) { ContractUtils.RequiresNotNull(body, "body"); return(new TryStatementBuilder(Utils.BlockVoid(body))); }
public Expression Else(params Expression[] body) { ContractUtils.RequiresNotNullItems(body, "body"); return(Else(Utils.BlockVoid(body))); }
public IfStatementBuilder ElseIf(Expression test, params Expression[] body) { ContractUtils.RequiresNotNullItems(body, "body"); return(ElseIf(test, Utils.BlockVoid(body))); }
public static Expression IfThen(Expression test, params Expression[] body) { return(IfThenElse(test, Utils.BlockVoid(body), null)); }