23 references to GetDataContract
System.Private.DataContractSerialization (23)
System\Runtime\Serialization\ClassDataContract.cs (1)
648
DataContract baseContract = DataContract.
GetDataContract
(baseType);
System\Runtime\Serialization\CollectionDataContract.cs (2)
621
DataContract.
GetDataContract
(ItemType);
625
_itemContract = DataContract.
GetDataContract
(ItemType);
System\Runtime\Serialization\DataContract.cs (3)
2024
if (DataContract.
GetDataContract
(type) is CollectionDataContract collectionDataContract && collectionDataContract.IsDictionary &&
2027
DataContract itemDataContract = DataContract.
GetDataContract
(Globals.TypeOfKeyValuePair.MakeGenericType(collectionDataContract.ItemType.GetGenericArguments()));
2051
DataContract dataContract = DataContract.
GetDataContract
(type);
System\Runtime\Serialization\DataContractSerializer.cs (2)
230
_rootContract = DataContract.
GetDataContract
((_serializationSurrogateProvider == null) ? _rootType : GetSurrogatedType(_serializationSurrogateProvider, _rootType));
436
return DataContract.
GetDataContract
(objectType);
System\Runtime\Serialization\DataContractSet.cs (3)
231
return DataContract.
GetDataContract
(type);
238
dataContract = DataContract.
GetDataContract
(dcType);
517
referencedContract = DataContract.
GetDataContract
(type).BindGenericParameters(structureCheckContracts);
System\Runtime\Serialization\DataMember.cs (1)
199
_memberTypeContract = DataContract.
GetDataContract
(MemberType);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
191
_rootContract = DataContract.
GetDataContract
(_rootType);
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
298
DataContract itemDataContract = DataContract.
GetDataContract
(Globals.TypeOfKeyValuePair.MakeGenericType(collectionDataContract.ItemType.GenericTypeArguments));
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
990
ClassDataContract? keyValuePairContract = DataContract.
GetDataContract
(value.LocalType) as ClassDataContract;
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (1)
50
return DataContractJsonSerializer.ReadJsonValue(DataContract.
GetDataContract
(Globals.TypeOfObjectArray), jsonReader, context);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
362
return DataContract.
GetDataContract
(oldItemContract.UnderlyingType);
System\Runtime\Serialization\KnownTypeDataContractResolver.cs (1)
38
DataContract contract = DataContract.
GetDataContract
(type);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
919
ClassDataContract? keyValuePairContract = DataContract.
GetDataContract
(value.LocalType) as ClassDataContract;
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
37
DataContract currentContract = DataContract.
GetDataContract
(type);
System\Runtime\Serialization\XsdDataContractExporter.cs (3)
194
DataContract dataContract = DataContract.
GetDataContract
(type);
213
DataContract dataContract = DataContract.
GetDataContract
(type);
232
DataContract dataContract = DataContract.
GetDataContract
(type);