ATMLSchemaLibrary.XsdUtils.extractAttributeGroups C# (CSharp) Method

extractAttributeGroups() public static method

public static extractAttributeGroups ( XmlSchema schema ) : List
schema System.Xml.Schema.XmlSchema
return List
        public static List<XmlSchemaAttributeGroup> extractAttributeGroups(XmlSchema schema)
        {
            List<XmlSchemaAttributeGroup> list = new List<XmlSchemaAttributeGroup>();
            foreach (object item in schema.Items)
            {
                if (item is XmlSchemaAttributeGroup)
                {
                    XmlSchemaAttributeGroup group = (XmlSchemaAttributeGroup)item;
                    list.Add(group);
                }
            }
            return list;
        }