77 references to Items
System.Data.Common (1)
System\Data\XMLSchema.cs (1)
183foreach (object item in schema.Items)
System.Private.DataContractSerialization (18)
System\Runtime\Serialization\SchemaExporter.cs (12)
113schema.Items.Add(topLevelElement); 123schema.Items.Add(type); 365schema.Items.Add(type); 429schema.Items.Add(type); 468schema.Items.Add(type); 560XmlSchemaObject[] itemArray = new XmlSchemaObject[schema.Items.Count]; 561schema.Items.CopyTo(itemArray, 0); 582schema.Items.Remove(item); 670foreach (XmlSchemaObject schemaItem in schema.Items) 717schema.Items.Add(defaultXmlType); 784schema.Items.Add(type); 798schema.Items.Add(type);
System\Runtime\Serialization\SchemaHelper.cs (4)
71foreach (XmlSchemaObject schemaObj in schema.Items) 103foreach (XmlSchemaObject schemaObj in schema.Items) 199foreach (XmlSchemaObject schemaObject in schema.Items) 216foreach (XmlSchemaObject schemaObject in schema.Items)
System\Runtime\Serialization\SchemaImporter.cs (2)
145xsdSchema.Items.Add(element); 604foreach (XmlSchemaObject schemaObject in serializationSchema.Items)
System.Private.Xml (58)
System\Xml\Schema\Inference\Infer.cs (5)
383xsa = FindAttribute(xs!.Items, localName); 390xs.Items.Add(xsa); 531xs!.Items.Add(xse); 543xs.Items.Add(xse); //add global element declaration only when creating new schema 1335xse = FindElement(schema!.Items, localName);
System\Xml\Schema\Preprocessor.cs (6)
432tempSchema.Items.Add(lang); 437tempSchema.Items.Add(xmlbase); 453tempSchema.Items.Add(space); 466tempSchema.Items.Add(attributeGroup); 728XmlSchemaObjectCollection schemaItems = schema.Items; 780schema.Items.Remove(removeItemsList[i]);
System\Xml\Schema\SchemaCollectionCompiler.cs (7)
149for (int i = 0; i < schema.Items.Count; ++i) 151object item = schema.Items[i]; 163else if ((attrgroup = schema.Items[i] as XmlSchemaAttributeGroup) != null) 167else if ((complextype = schema.Items[i] as XmlSchemaComplexType) != null) 171else if ((simpletype = schema.Items[i] as XmlSchemaSimpleType) != null) 175else if ((element = schema.Items[i] as XmlSchemaElement) != null) 179else if ((group = schema.Items[i] as XmlSchemaGroup) != null)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (13)
535for (int i = 0; i < schema.Items.Count; ++i) 537SetParent(schema.Items[i], schema); 538XmlSchemaAttribute? attribute = schema.Items[i] as XmlSchemaAttribute; 544else if (schema.Items[i] is XmlSchemaAttributeGroup attributeGroup) 549else if (schema.Items[i] is XmlSchemaComplexType complexType) 554else if (schema.Items[i] is XmlSchemaSimpleType simpleType) 559else if (schema.Items[i] is XmlSchemaElement element) 564else if (schema.Items[i] is XmlSchemaGroup group) 569else if (schema.Items[i] is XmlSchemaNotation notation) 574else if (!(schema.Items[i] is XmlSchemaAnnotation)) 576SendValidationEvent(SR.Sch_InvalidCollection, schema.Items[i]); 577removeItemsList.Add(schema.Items[i]); 582schema.Items.Remove(removeItemsList[i]);
System\Xml\Schema\XmlSchema.cs (1)
484that.Items.Add(newItem);
System\Xml\Schema\XsdBuilder.cs (7)
1253builder._schema.Items.Add(builder._attribute); 1321builder._schema.Items.Add(builder._element); 1418builder._schema.Items.Add(builder._simpleType); 1588builder._schema.Items.Add(builder._complexType); 1782builder._schema.Items.Add(builder._attributeGroup); 1902builder._schema.Items.Add(builder._group); 2032builder._schema.Items.Add(builder._notation);
System\Xml\Serialization\ImportContext.cs (2)
211_items += s.Items.Count; 212foreach (XmlSchemaObject item in s.Items)
System\Xml\Serialization\XmlSchemaExporter.cs (5)
143XmlSchemaType? schemaType = FindSchemaType(name, schema.Items); 188XmlSchemaType? schemaType = FindSchemaType(name, schema.Items); 257foreach (XmlSchemaObject o in schema.Items) 296schema.Items.Add(item); 327return schema.Items.Contains(item);
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1073for (int j = 0; j < schema.Items.Count; j++) 1075object item = schema.Items[j];
System\Xml\Serialization\XmlSchemas.cs (10)
301foreach (XmlSchemaObject o in schema.Items) 407bool[] matchedItems = new bool[schema.Items.Count]; 409for (int i = 0; i < schema.Items.Count; i++) 411XmlSchemaObject o = schema.Items[i]; 423if (count != schema.Items.Count) 426for (int i = 0; i < schema.Items.Count; i++) 430destination.Items.Add(schema.Items[i]); 607foreach (XmlSchemaObject item in s.Items) 742schema.Items.Add(element);