예제 #1
0
 public static void ComputeMethodDifference(SortedList<string, Method> master, SortedList<string, Method> subset, SortedList<string, Method> output, bool use_design)
 {
     // If it's in the master but not the subset, add it to the output
     foreach (string s in master.Keys)
         if (!(subset.ContainsKey (s)) && (use_design == false || !s.Contains ("System.Web.UI.Design")))
             output[s] = new Method (s);
 }
예제 #2
0
        public virtual bool Matches(string method, out Method match)
        {
            if (data.ContainsKey (method)) {
                match = data[method];
                return true;
            }

            match = null;
            return false;
        }
예제 #3
0
        public BaseChecker(Stream input)
        {
            data = new SortedList<string, Method> ();

            StreamReader input_reader = new StreamReader (input);
            string line;

            while ((line = input_reader.ReadLine ()) != null)
                data[line] = new Method (line);
        }
예제 #4
0
        public CheckMonoTodo(Stream input)
        {
            data = new SortedList<string, Method> ();

            StreamReader input_reader = new StreamReader (input);
            string line;

            while ((line = input_reader.ReadLine ()) != null) {
                int split = line.IndexOf ("-");

                string method = line.Substring (0, split);
                string description = line.Substring (split + 1);

                data[method] = new Method (method, description);
            }
        }