6 instantiations of XmlDataContract
System.Private.DataContractSerialization (6)
System\Runtime\Serialization\DataContract.cs (4)
466dataContract = new XmlDataContract(type); 740dataContract = new XmlDataContract(type); 863dataContract = new XmlDataContract(typeof(XmlElement)); 865dataContract = new XmlDataContract(typeof(XmlNode[]));
System\Runtime\Serialization\SchemaImporter.cs (2)
706xmlDataContract = new XmlDataContract(Globals.TypeOfSchemaDefinedType); 743XmlDataContract xmlDataContract = new XmlDataContract(referencedType);
32 references to XmlDataContract
System.Private.DataContractSerialization (28)
System\Runtime\Serialization\DataContractSerializer.cs (1)
498return XmlObjectSerializerReadContext.ReadRootIXmlSerializable(xmlReader, (contract as XmlDataContract)!, false /*isMemberType*/);
System\Runtime\Serialization\DataContractSet.cs (3)
132else if (dataContract is XmlDataContract xmlDC) 196private void AddXmlDataContract(XmlDataContract xmlDataContract) 549if (dataContract is XmlDataContract xmlDataContract && xmlDataContract.IsAnonymous)
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
266else if (traditionalDataContractType == typeof(XmlDataContract)) 268dataContract = new JsonXmlDataContract((XmlDataContract)traditionalDataContract);
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
19public JsonXmlDataContract(XmlDataContract traditionalXmlDataContract)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
323if ((contractType == typeof(XmlDataContract)) && !Globals.TypeOfIXmlSerializable.IsAssignableFrom(declaredType))
System\Runtime\Serialization\SchemaExporter.cs (4)
82else if (dataContract is XmlDataContract) 83ExportXmlDataContract((XmlDataContract)dataContract); 186if (dataContract is XmlDataContract xmlDataContract && xmlDataContract.IsAnonymous) 505private void ExportXmlDataContract(XmlDataContract dataContract)
System\Runtime\Serialization\SchemaImporter.cs (7)
353if (contract is XmlDataContract xmlDataContract) 512XmlDataContract? specialContract = ImportSpecialXmlDataType(type, isAnonymous); 702XmlDataContract? xmlDataContract = ImportSpecialXmlDataType(xsdType, isAnonymous); 729private XmlDataContract? ImportSpecialXmlDataType(XmlSchemaType xsdType, bool isAnonymous) 743XmlDataContract xmlDataContract = new XmlDataContract(referencedType); 748return (XmlDataContract?)DataContract.GetBuiltInDataContract(Globals.TypeOfXmlElement); 751return (XmlDataContract?)DataContract.GetBuiltInDataContract(Globals.TypeOfXmlNodeArray);
System\Runtime\Serialization\XmlDataContract.cs (2)
23internal const string ContractTypeString = nameof(XmlDataContract); 390if (other is XmlDataContract dataContract)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (4)
496internal object? ReadIXmlSerializable(XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, bool isMemberType) 504internal static object? ReadRootIXmlSerializable(XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, bool isMemberType) 511internal static object? ReadIXmlSerializable(XmlSerializableReader xmlSerializableReader, XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, bool isMemberType) 660else if (dataContract is XmlDataContract)
System\Runtime\Serialization\XsdDataContractExporter.cs (3)
196if (dataContract is XmlDataContract xmlDataContract && xmlDataContract.IsAnonymous) 215if (dataContract is XmlDataContract xmlDataContract && xmlDataContract.IsAnonymous) 234if (dataContract is not XmlDataContract xdc || xdc.HasRoot) // All non-XmlDataContracts "have root".
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (3)
235if (dataContract is XmlDataContract xmlDataContract) 544if (dataContract is XmlDataContract xmlContract) 1261private void ExportXmlDataContract(XmlDataContract xmlDataContract, ContractCodeDomInfo contractCodeDomInfo)
System.Runtime.Serialization.Xml (1)
artifacts\obj\System.Runtime.Serialization.Xml\Debug\net10.0\System.Runtime.Serialization.Xml.Forwards.cs (1)
7[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.DataContracts.XmlDataContract))]