示例#1
0
        private static bool IsMatchPropertyBag(ITemplateInfo info, Dictionary <string, string> propertyBag)
        {
            if (propertyBag == null || !propertyBag.Any())
            {
                return(true);
            }

            return(propertyBag.All(p =>
                                   info.GetPropertyBagValuesList(p.Key).Contains(p.Value, StringComparer.OrdinalIgnoreCase) ||
                                   info.GetPropertyBagValuesList(p.Key).Contains(All, StringComparer.OrdinalIgnoreCase)));
        }