45 references to ItemType
System.Private.DataContractSerialization (45)
System\Runtime\Serialization\CollectionDataContract.cs (7)
222XmlDictionaryString? tempChildElementNamespace = ClassDataContract.GetChildNamespaceToDeclare(this, ItemType, new XmlDictionary()); 1458if (ItemType != null && !IsTypeVisible(ItemType)) 1464DataContract.GetClrTypeFullName(ItemType)), 1514if (ItemType != null && !IsTypeVisible(ItemType)) 1520DataContract.GetClrTypeFullName(ItemType)),
System\Runtime\Serialization\DataContract.cs (2)
2025collectionDataContract.ItemType.GetGenericTypeDefinition() == Globals.TypeOfKeyValue) 2027DataContract itemDataContract = DataContract.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionDataContract.ItemType.GetGenericArguments()));
System\Runtime\Serialization\DataContractSet.cs (2)
295if (collectionContract.ItemType != null) 296return GetDataContract(collectionContract.ItemType);
System\Runtime\Serialization\Json\JsonDataContract.cs (3)
295if (collectionDataContract.ItemType.IsGenericType 296&& collectionDataContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>)) 298DataContract itemDataContract = DataContract.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionDataContract.ItemType.GenericTypeArguments));
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
602Type itemType = collectionContract.ItemType; 823Type itemType = collectionContract.ItemType;
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (5)
316Type itemType = collectionContract.ItemType; 351incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType); 354incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.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)
412if (collectionContract.ItemType.IsGenericType 413&& collectionContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>)) 415itemContract = context.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 419itemContract = 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 = Globals.TypeOfDictionaryGeneric.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)
636Type itemType = collectionContract.ItemType; 778Type itemType = collectionContract.ItemType;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (5)
396Type itemType = collectionContract.ItemType; 430incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType); 433incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.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));