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