/// <summary> /// Find all paragraphs which match the predicate condition /// </summary> /// <param name="condition"></param> /// <returns></returns> private List <Paragraph> findMatching(ParagraphCondition condition) { List <Paragraph> retVal = new List <Paragraph>(); foreach (Paragraph p in Paragraphs.Values) { if (condition(p)) { retVal.Add(p); } } return(retVal); }
/// <summary> /// Find all paragraphs which match the predicate condition /// </summary> /// <param name="condition"></param> /// <returns></returns> private List<Paragraph> findMatching(ParagraphCondition condition) { List<Paragraph> retVal = new List<Paragraph>(); foreach (Paragraph p in Paragraphs.Values) { if (condition(p)) { retVal.Add(p); } } return retVal; }