Exemple #1
0
        public IEnumerable <IStylingRule> GetUnusedRules()
        {
            lock (_sync)
            {
                var unusedRules = new HashSet <IStylingRule>(AllRules);

                unusedRules.ExceptWith(_ruleUsages.Select(x => x.Rule).Distinct());

                return(unusedRules.Where(x => !UsageRegistry.IsAProtectedClass(x)).ToList());
            }
        }
Exemple #2
0
 public IEnumerable <IStylingRule> GetUnusedRules()
 {
     return(AllRules.Except(_ruleUsages.Select(x => x.Rule)).Where(x => !UsageRegistry.IsAProtectedClass(x)).ToList());
 }