Exemple #1
0
        private int CountErrors(SeverityCodeType type)
        {
            IEnumerator eenum = mErrors.GetEnumerator();

            int count = 0;

            while (eenum.MoveNext())
            {
                if (((ErrorType)eenum.Current).SeverityCode == type)
                {
                    count++;
                }
            }

            return(count);
        }
		private int CountErrors(SeverityCodeType type)
		{
			IEnumerator eenum = mErrors.GetEnumerator();

			int count = 0;
			while (eenum.MoveNext())
			{
				if (((ErrorType)eenum.Current).SeverityCode == type)
					count ++;
			}

			return count;
		}