31 references to ItemType
System.Runtime.Serialization (31)
System\Runtime\Serialization\CollectionDataContract.cs (7)
284XmlDictionaryString tempChildElementNamespace = ClassDataContract.GetChildNamespaceToDeclare(this, ItemType, new XmlDictionary()); 1320if (ItemType != null && !IsTypeVisible(ItemType)) 1327DataContract.GetClrTypeFullName(ItemType)), 1379if (ItemType != null && !IsTypeVisible(ItemType)) 1386DataContract.GetClrTypeFullName(ItemType)),
System\Runtime\Serialization\DataContractSet.cs (2)
285if (collectionContract.ItemType != null) 286return GetDataContract(collectionContract.ItemType);
System\Runtime\Serialization\Json\JsonDataContract.cs (3)
320if (collectionDataContract.ItemType.IsGenericType 321&& collectionDataContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>)) 323DataContract itemDataContract = DataContract.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionDataContract.ItemType.GetGenericArguments()));
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
644Type itemType = collectionContract.ItemType; 860Type itemType = collectionContract.ItemType;
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (5)
359Type itemType = collectionContract.ItemType; 392incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType); 395incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 409keyValueTypes = collectionContract.ItemType.GetGenericArguments(); 444&& interfaceType.GetGenericArguments()[0] == collectionContract.ItemType)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (4)
395if (collectionContract.ItemType.IsGenericType 396&& collectionContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>)) 398itemContract = context.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 402itemContract = context.GetDataContract(context.GetSurrogatedType(collectionContract.ItemType));
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
599Type itemType = collectionContract.ItemType; 738Type itemType = collectionContract.ItemType;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (5)
396Type itemType = collectionContract.ItemType; 428incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType); 431incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 445keyValueTypes = collectionContract.ItemType.GetGenericArguments(); 480&& interfaceType.GetGenericArguments()[0] == collectionContract.ItemType)
System\Runtime\Serialization\XmlObjectSerializerContext.cs (1)
357DataContract itemContract = GetDataContract(GetSurrogatedType(collectionContract.ItemType));