예제 #1
0
        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));
        }
예제 #2
0
        public IScnPrm FindParam(string paramName)
        {
            var reg = new Regex("\\b" + paramName, RegexOptions.IgnoreCase);

            return(Prms.Where(elem => reg.IsMatch(elem.Name)).FirstOrDefault());
        }
예제 #3
0
 public IEnumerable <IScnPrm> GetDiffPrms()
 {
     return(Prms.Where(a => a.MyDiff != null));
 }