public SwitchBuilder Default(Expression body) { ContractUtils.Requires(_default == false, "body", "Already has default clause"); _cases.Add(Expression.DefaultCase(body)); _default = true; return(this); }
public SwitchBuilder Default(Expression body) { ContractUtils.Requires(_default == false, "body", "Already has default clause"); _cases.Add(Expression.DefaultCase(body)); _default = true; return(this); }