1 write to HasRoot
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaImporter.cs (1)
716xmlDataContract.HasRoot = !IsXmlAnyElementType(xsdType as XmlSchemaComplexType);
5 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".
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1289if (xmlDataContract.IsAnonymous && !xmlDataContract.HasRoot)