System.Xml.Serialization.XmlReflectionImporter.CountAtLevel C# (CSharp) Method

CountAtLevel() private static method

private static CountAtLevel ( XmlArrayItemAttributes attributes, int level ) : int
attributes XmlArrayItemAttributes
level int
return int
        private static int CountAtLevel(XmlArrayItemAttributes attributes, int level)
        {
            int sum = 0;
            for (int i = 0; i < attributes.Count; i++)
                if (attributes[i].NestingLevel == level) sum++;
            return sum;
        }