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