45 references to ItemType
System.Private.DataContractSerialization (45)
System\Runtime\Serialization\CollectionDataContract.cs (7)
223XmlDictionaryString? tempChildElementNamespace = ClassDataContract.GetChildNamespaceToDeclare(this, ItemType, new XmlDictionary()); 1462if (ItemType != null && !IsTypeVisible(ItemType)) 1468DataContract.GetClrTypeFullName(ItemType)), 1518if (ItemType != null && !IsTypeVisible(ItemType)) 1524DataContract.GetClrTypeFullName(ItemType)),
System\Runtime\Serialization\DataContract.cs (2)
2051collectionDataContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>)) 2053DataContract itemDataContract = DataContract.GetDataContract(typeof(System.Collections.Generic.KeyValuePair<,>).MakeGenericType(collectionDataContract.ItemType.GetGenericArguments()));
System\Runtime\Serialization\DataContractSet.cs (2)
302if (collectionContract.ItemType != null) 303return GetDataContract(collectionContract.ItemType, verifyConstructor: false);
System\Runtime\Serialization\Json\JsonDataContract.cs (3)
295if (collectionDataContract.ItemType.IsGenericType 296&& collectionDataContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>)) 298DataContract itemDataContract = DataContract.GetDataContract(typeof(System.Collections.Generic.KeyValuePair<,>).MakeGenericType(collectionDataContract.ItemType.GenericTypeArguments));
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
606Type itemType = collectionContract.ItemType; 827Type itemType = collectionContract.ItemType;
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (5)
316Type itemType = collectionContract.ItemType; 351incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType); 354incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(typeof(System.Collections.Generic.KeyValuePair<,>).MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 368keyValueTypes = collectionContract.ItemType.GetGenericArguments(); 401&& interfaceType.GetGenericArguments()[0] == collectionContract.ItemType)
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (1)
139ReadSimpleDictionary(xmlReader, context, collectionContract, collectionContract.ItemType, resultCollection);
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (3)
43Type itemType = collectionContract.ItemType; 72Type[] itemTypeGenericArguments = collectionContract.ItemType.GetGenericArguments(); 119jsonDataContract!.WriteJsonValue(jsonWriter, current, context, collectionContract.ItemType.TypeHandle);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (4)
413if (collectionContract.ItemType.IsGenericType 414&& collectionContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>)) 416itemContract = context.GetDataContract(typeof(System.Collections.Generic.KeyValuePair<,>).MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 420itemContract = context.GetDataContract(context.GetSurrogatedType(collectionContract.ItemType));
System\Runtime\Serialization\ReflectionReader.cs (7)
105if (isArray && ReflectionTryReadPrimitiveArray(xmlReader, context, collectionItemName, collectionItemNamespace, collectionContract.ItemType, arraySize, out resultArray)) 134collectionReadItemDelegate = GetReflectionReadValueDelegate(collectionContract.ItemType); 152Type itemType = collectionContract.ItemType; 482Type arrayType = collectionContract.ItemType.MakeArrayType(); 489Type type = typeof(Dictionary<,>).MakeGenericType(collectionContract.ItemType.GetGenericArguments()); 553Type keyType = collectionContract.ItemType.GenericTypeArguments[0]; 554Type valueType = collectionContract.ItemType.GenericTypeArguments[1];
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (1)
41Type itemType = collectionDataContract.ItemType;
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
640Type itemType = collectionContract.ItemType; 782Type itemType = collectionContract.ItemType;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (5)
396Type itemType = collectionContract.ItemType; 430incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType); 433incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(typeof(System.Collections.Generic.KeyValuePair<,>).MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 447keyValueTypes = collectionContract.ItemType.GetGenericArguments(); 480&& interfaceType.GetGenericArguments()[0] == collectionContract.ItemType)
System\Runtime\Serialization\XmlObjectSerializerContext.cs (1)
290DataContract itemContract = GetDataContract(GetSurrogatedType(collectionContract.ItemType));