Exemple #1
0
        private string printErrorSummary(ERRORState state)
        {
            string        res       = "";
            List <string> validKeys = (from x in _errors where x.Value.state == state select x.Key).ToList <string>();

            if (validKeys.Count == 0)
            {
                return("");
            }

            res += state + " summary:\n";
            foreach (string errorString in validKeys)
            {
                res += (_errors[errorString].occurences + " : " + errorString) + "\n";
            }
            return(res);
        }
Exemple #2
0
 private int getErrorsCount(ERRORState state)
 {
     return((_errors != null) ? (from x in _errors where x.Value.state == state select x.Value.occurences).Sum() : 0);
 }
 private int getErrorsCount(ERRORState state)
 {
     return (_errors != null) ? (from x in _errors where x.Value.state == state select x.Value.occurences).Sum() : 0;
 }
        private string printErrorSummary(ERRORState state)
        {
            string res = "";
            List<string> validKeys = (from x in _errors where x.Value.state == state select x.Key).ToList<string>();
            if (validKeys.Count == 0)
            {
                return "";
            }

            res += state + " summary:\n";
            foreach (string errorString in validKeys)
            {
                res += (_errors[errorString].occurences + " : " + errorString) + "\n";
            }
            return res;
        }