45 references to ItemType
System.Private.DataContractSerialization (45)
System\Runtime\Serialization\CollectionDataContract.cs (7)
222
XmlDictionaryString? tempChildElementNamespace = ClassDataContract.GetChildNamespaceToDeclare(this,
ItemType
, new XmlDictionary());
1458
if (
ItemType
!= null && !IsTypeVisible(
ItemType
))
1464
DataContract.GetClrTypeFullName(
ItemType
)),
1514
if (
ItemType
!= null && !IsTypeVisible(
ItemType
))
1520
DataContract.GetClrTypeFullName(
ItemType
)),
System\Runtime\Serialization\DataContract.cs (2)
2025
collectionDataContract.
ItemType
.GetGenericTypeDefinition() == Globals.TypeOfKeyValue)
2027
DataContract itemDataContract = DataContract.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionDataContract.
ItemType
.GetGenericArguments()));
System\Runtime\Serialization\DataContractSet.cs (2)
295
if (collectionContract.
ItemType
!= null)
296
return GetDataContract(collectionContract.
ItemType
);
System\Runtime\Serialization\Json\JsonDataContract.cs (3)
295
if (collectionDataContract.
ItemType
.IsGenericType
296
&& collectionDataContract.
ItemType
.GetGenericTypeDefinition() == typeof(KeyValue<,>))
298
DataContract itemDataContract = DataContract.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionDataContract.
ItemType
.GenericTypeArguments));
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
602
Type itemType = collectionContract.
ItemType
;
823
Type itemType = collectionContract.
ItemType
;
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (5)
316
Type itemType = collectionContract.
ItemType
;
351
incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.
ItemType
);
354
incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.
ItemType
.GetGenericArguments()));
368
keyValueTypes = collectionContract.
ItemType
.GetGenericArguments();
401
&& interfaceType.GetGenericArguments()[0] == collectionContract.
ItemType
)
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (1)
139
ReadSimpleDictionary(xmlReader, context, collectionContract, collectionContract.
ItemType
, resultCollection);
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (3)
43
Type itemType = collectionContract.
ItemType
;
72
Type[] itemTypeGenericArguments = collectionContract.
ItemType
.GetGenericArguments();
119
jsonDataContract!.WriteJsonValue(jsonWriter, current, context, collectionContract.
ItemType
.TypeHandle);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (4)
412
if (collectionContract.
ItemType
.IsGenericType
413
&& collectionContract.
ItemType
.GetGenericTypeDefinition() == typeof(KeyValue<,>))
415
itemContract = context.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.
ItemType
.GetGenericArguments()));
419
itemContract = context.GetDataContract(context.GetSurrogatedType(collectionContract.
ItemType
));
System\Runtime\Serialization\ReflectionReader.cs (7)
105
if (isArray && ReflectionTryReadPrimitiveArray(xmlReader, context, collectionItemName, collectionItemNamespace, collectionContract.
ItemType
, arraySize, out resultArray))
134
collectionReadItemDelegate = GetReflectionReadValueDelegate(collectionContract.
ItemType
);
152
Type itemType = collectionContract.
ItemType
;
482
Type arrayType = collectionContract.
ItemType
.MakeArrayType();
489
Type type = Globals.TypeOfDictionaryGeneric.MakeGenericType(collectionContract.
ItemType
.GetGenericArguments());
553
Type keyType = collectionContract.
ItemType
.GenericTypeArguments[0];
554
Type valueType = collectionContract.
ItemType
.GenericTypeArguments[1];
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (1)
41
Type itemType = collectionDataContract.
ItemType
;
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
636
Type itemType = collectionContract.
ItemType
;
778
Type itemType = collectionContract.
ItemType
;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (5)
396
Type itemType = collectionContract.
ItemType
;
430
incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.
ItemType
);
433
incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.
ItemType
.GetGenericArguments()));
447
keyValueTypes = collectionContract.
ItemType
.GetGenericArguments();
480
&& interfaceType.GetGenericArguments()[0] == collectionContract.
ItemType
)
System\Runtime\Serialization\XmlObjectSerializerContext.cs (1)
290
DataContract itemContract = GetDataContract(GetSurrogatedType(collectionContract.
ItemType
));