1 write to HasRoot
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaImporter.cs (1)
716xmlDataContract.HasRoot = !IsXmlAnyElementType(xsdType as XmlSchemaComplexType);
4 references to HasRoot
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\XmlDataContract.cs (2)
392if (this.HasRoot != dataContract.HasRoot)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
515if (isMemberType && !xmlDataContract.HasRoot)
System\Runtime\Serialization\XsdDataContractExporter.cs (1)
234if (dataContract is not XmlDataContract xdc || xdc.HasRoot) // All non-XmlDataContracts "have root".