ATMLSchemaLibrary.managers.SchemaManager.LoadAttributes C# (CSharp) Method

LoadAttributes() private static method

private static LoadAttributes ( XmlSchemaObject>.Dictionary xmlSchemaObjects, XmlSchemaObjectCollection attributes ) : void
xmlSchemaObjects XmlSchemaObject>.Dictionary
attributes System.Xml.Schema.XmlSchemaObjectCollection
return void
        private static void LoadAttributes( Dictionary<string, XmlSchemaObject> xmlSchemaObjects,
            XmlSchemaObjectCollection attributes)
        {
            foreach (XmlSchemaObject o in attributes)
            {
                var attribute = o as XmlSchemaAttribute;
                var attributeGroup = o as XmlSchemaAttributeGroup;
                var anyAttribute = o as XmlSchemaAnyAttribute;
                if (attribute != null && !string.IsNullOrWhiteSpace( attribute.Name ) &&
                    !xmlSchemaObjects.ContainsKey( attribute.Name ))
                {
                    xmlSchemaObjects.Add( attribute.Name, attribute );
                }
                if (attributeGroup != null)
                {
                    int ii = 0;
                }
                if (anyAttribute != null)
                {
                    int ii = 0;
                }
            }
        }