3 overrides of KnownDataContracts
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\ClassDataContract.cs (1)
114
public override DataContractDictionary?
KnownDataContracts
System\Runtime\Serialization\CollectionDataContract.cs (1)
252
public override DataContractDictionary?
KnownDataContracts
System\Runtime\Serialization\XmlDataContract.cs (1)
35
public override DataContractDictionary?
KnownDataContracts
18 references to KnownDataContracts
System.Private.DataContractSerialization (13)
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
283
if (_traditionalDataContract.
KnownDataContracts
!= null)
285
foreach (KeyValuePair<XmlQualifiedName, DataContract> knownDataContract in _traditionalDataContract.
KnownDataContracts
)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (2)
267
if (dataContract.
KnownDataContracts
?.Count > 0)
269
scopedKnownTypes.Push(dataContract.
KnownDataContracts
);
System\Runtime\Serialization\KnownTypeDataContractResolver.cs (1)
39
if (_context.IsKnownType(contract, contract.
KnownDataContracts
, declaredType))
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (4)
147
if (dataContract.
KnownDataContracts
?.Count > 0)
149
scopedKnownTypes.Push(dataContract.
KnownDataContracts
);
167
knownTypesAddedInCurrentScope = ReplaceScopedKnownTypesTop(dataContract.
KnownDataContracts
, knownTypesAddedInCurrentScope);
178
knownTypesAddedInCurrentScope = ReplaceScopedKnownTypesTop(dataContract.
KnownDataContracts
, knownTypesAddedInCurrentScope);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (4)
130
if (dataContract.
KnownDataContracts
?.Count > 0)
132
scopedKnownTypes.Push(dataContract.
KnownDataContracts
);
235
if (dataContract.
KnownDataContracts
?.Count > 0)
237
scopedKnownTypes.Push(dataContract.
KnownDataContracts
);
System.Runtime.Serialization.Schema (5)
System\Runtime\Serialization\Schema\CodeExporter.cs (5)
938
return classDataContract.
KnownDataContracts
;
962
return classDataContract.
KnownDataContracts
;
973
Debug.Assert(classDataContract.
KnownDataContracts
!= null);
977
if (classDataContract.XmlName != pair.Key && !classDataContract.
KnownDataContracts
.ContainsKey(pair.Key) && !pair.Value.IsBuiltInDataContract)
978
classDataContract.
KnownDataContracts
.Add(pair.Key, pair.Value);