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