private void buildRuleset(BuildState state, p_Ruleset ruleset) { foreach (var pRule in ruleset.Rules) { buildRule(state, pRule); } }
private p_Ruleset obtainRuleset() { p_Ruleset ruleset = new p_Ruleset(); ruleset.Rules = new List <p_Rule>(); while (true) { if (resetState(checkRule)) { p_Rule r; ruleset.Rules.Add(r = obtainRule()); continue; } else { break; } } return(ruleset); }
private p_Ruleset obtainRuleset() { p_Ruleset ruleset = new p_Ruleset(); ruleset.Rules = new List<p_Rule>(); while (true) { if (resetState(checkRule)) { p_Rule r; ruleset.Rules.Add(r = obtainRule()); continue; } else { break; } } return ruleset; }