public IEnumerable <IScnPrm> GetDiffPrms() { var chldrenDiffs = Enumerable.Empty <IScnPrm>(); foreach (var ch in Children) { chldrenDiffs = chldrenDiffs.Concat(ch.GetDiffPrms()); } return(Prms.Where(a => a.MyDiff != null).Concat(chldrenDiffs)); }
public IScnPrm FindParam(string paramName) { var reg = new Regex("\\b" + paramName, RegexOptions.IgnoreCase); return(Prms.Where(elem => reg.IsMatch(elem.Name)).FirstOrDefault()); }
public IEnumerable <IScnPrm> GetDiffPrms() { return(Prms.Where(a => a.MyDiff != null)); }