5 writes to ItemContract
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\CollectionDataContract.cs (1)
1400boundCollectionContract.ItemContract = ItemContract.BindGenericParameters(paramContracts, boundContracts);
System\Runtime\Serialization\SchemaImporter.cs (4)
1084dataContract.ItemContract = ImportAnonymousElement(element, shortName); 1089dataContract.ItemContract = ImportAnonymousElement(element, fullName); 1095dataContract.ItemContract = ImportType(SchemaExporter.AnytypeQualifiedName); 1099dataContract.ItemContract = ImportType(element.SchemaTypeName);
26 references to ItemContract
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\CollectionDataContract.cs (12)
203get => ItemContract; 1400boundCollectionContract.ItemContract = ItemContract.BindGenericParameters(paramContracts, boundContracts); 1401boundCollectionContract.IsItemTypeNullable = !boundCollectionContract.ItemContract.IsValueType; 1402boundCollectionContract.ItemName = ItemNameSetExplicit ? ItemName : boundCollectionContract.ItemContract.XmlName.Name; 1406IsCollectionDataContract(UnderlyingType) ? XmlName.Namespace : DataContract.GetCollectionNamespace(boundCollectionContract.ItemContract.XmlName.Namespace)); 1542bool thisItemTypeIsNullable = (ItemContract == null) ? false : !ItemContract.IsValueType; 1543bool otherItemTypeIsNullable = (dataContract.ItemContract == null) ? false : !dataContract.ItemContract.IsValueType; 1546ItemContract != null && ItemContract.Equals(dataContract.ItemContract, checkedContracts);
System\Runtime\Serialization\DataContractSet.cs (2)
181ClassDataContract keyValueContract = (collectionDataContract.ItemContract as ClassDataContract)!; 297return collectionContract.ItemContract;
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
290DataContract itemContract = collectionDataContract.ItemContract;
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
740ClassDataContract keyValueDataContract = (ClassDataContract)collectionContract.ItemContract;
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (2)
124var itemContract = XmlObjectSerializerWriteContextComplexJson.GetRevisedItemContract(collectionContract.ItemContract); 160ClassDataContract keyValueDataContract = (ClassDataContract)collectionContract.ItemContract;
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
108itemContract = XmlObjectSerializerWriteContextComplexJson.GetRevisedItemContract(collectionContract.ItemContract);
System\Runtime\Serialization\ReflectionXmlFormatReader.cs (1)
128return collectionContract.ItemContract.ReadXmlValue(xmlReader, context);
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (1)
81collectionDataContract.ItemContract.WriteXmlValue(xmlWriter, current, context);
System\Runtime\Serialization\SchemaExporter.cs (1)
381ClassDataContract keyValueContract = (collectionDataContract.ItemContract as ClassDataContract)!;
System\Runtime\Serialization\SchemaImporter.cs (4)
192dataContract = ((CollectionDataContract)dataContract).ItemContract; 199dataContract = ((CollectionDataContract)dataContract).ItemContract; 1104ClassDataContract? keyValueContract = dataContract.ItemContract as ClassDataContract; 1126dataContract.ItemContract.XmlName = new XmlQualifiedName(genericInfo.GetExpandedXmlName().Name, typeName.Namespace);