예제 #1
0
        public override bool Equals(object obj)
        {
            Linter lb = obj as Linter;

            if (lb == null)
            {
                return(false);
            }
            else
            {
                return(Name.Equals(lb.Name));
            }
        }
 private static void AddLinter(Dictionary <Linter, IEnumerable <string> > dic, Linter linter, IEnumerable <string> files)
 {
     if (dic.ContainsKey(linter))
     {
         dic[linter] = dic[linter].Union(files);
     }
     else
     {
         dic.Add(linter, files);
     }
 }