System.Data.XSDSchema.HandleAttributes C# (CSharp) Method

HandleAttributes() private method

private HandleAttributes ( XmlSchemaObjectCollection attributes, DataTable table, bool isBase ) : void
attributes System.Xml.Schema.XmlSchemaObjectCollection
table DataTable
isBase bool
return void
        internal void HandleAttributes(XmlSchemaObjectCollection attributes, DataTable table, bool isBase)
        {
            foreach (XmlSchemaObject so in attributes)
            {
                if (so is XmlSchemaAttribute)
                {
                    HandleAttributeColumn((XmlSchemaAttribute)so, table, isBase);
                }
                else
                {  // XmlSchemaAttributeGroupRef
                    XmlSchemaAttributeGroupRef groupRef = so as XmlSchemaAttributeGroupRef;
                    XmlSchemaAttributeGroup schemaGroup = _attributeGroups[groupRef.RefName] as XmlSchemaAttributeGroup;
                    if (schemaGroup != null)
                    {
                        HandleAttributeGroup(schemaGroup, table, isBase);
                    }
                }
            }
        }