System.Xml.Schema.Preprocessor.CheckRefinedAttributeGroup C# (CSharp) Méthode

CheckRefinedAttributeGroup() private méthode

private CheckRefinedAttributeGroup ( XmlSchemaAttributeGroup attributeGroup ) : void
attributeGroup XmlSchemaAttributeGroup
Résultat void
        private void CheckRefinedAttributeGroup(XmlSchemaAttributeGroup attributeGroup) {
            int count = 0;
            foreach (object obj in attributeGroup.Attributes) {
                if (obj is XmlSchemaAttributeGroupRef && ((XmlSchemaAttributeGroupRef)obj).RefName == attributeGroup.QualifiedName) {
                    count++;
                }
            }           
            if (count > 1) {
                SendValidationEvent(Res.Sch_MultipleAttrGroupSelfRef, attributeGroup);
            }
            attributeGroup.SelfReferenceCount = count;
        }