Add() public method

public Add ( string categoryName1, string allTerms, int allTotal, int selectTotal ) : void
categoryName1 string
allTerms string
allTotal int
selectTotal int
return void
        private static void CountTerms(string categoryName2, IList <string[]> annot2, CountingResult result,
                                       IList <bool> selection)
        {
            foreach (string[] t in annot2)
            {
                Array.Sort(t);
            }
            string[] allTerms2 = GetAllTerms(annot2);
            int      n2        = allTerms2.Length;

            int[] allTotal    = new int[n2];
            int[] selectTotal = new int[n2];
            for (int i2 = 0; i2 < n2; i2++)
            {
                for (int j = 0; j < annot2.Count; j++)
                {
                    if (Array.BinarySearch(annot2[j], allTerms2[i2]) >= 0)
                    {
                        allTotal[i2]++;
                        if (selection != null && selection[j])
                        {
                            selectTotal[i2]++;
                        }
                    }
                }
            }
            result.Add(categoryName2, allTerms2, allTotal, selectTotal);
        }
        private static void CountTerms(string categoryName2, IList<string[]> annot2, CountingResult result,
			IList<bool> selection)
        {
            foreach (string[] t in annot2){
                Array.Sort(t);
            }
            string[] allTerms2 = GetAllTerms(annot2);
            int n2 = allTerms2.Length;
            int[] allTotal = new int[n2];
            int[] selectTotal = new int[n2];
            for (int i2 = 0; i2 < n2; i2++){
                for (int j = 0; j < annot2.Count; j++){
                    if (Array.BinarySearch(annot2[j], allTerms2[i2]) >= 0){
                        allTotal[i2]++;
                        if (selection != null && selection[j]){
                            selectTotal[i2]++;
                        }
                    }
                }
            }
            result.Add(categoryName2, allTerms2, allTotal, selectTotal);
        }