45 references to IsRoot
System.Private.Xml (45)
System\Xml\Serialization\Mappings.cs (5)
617if (BaseMapping == null || BaseMapping.TypeDesc!.IsRoot) 637if (!_hasSimpleContent && text != null && !text.Mapping!.TypeDesc!.CanBeTextValue && !(BaseMapping != null && !BaseMapping.TypeDesc!.IsRoot && (text.Mapping.TypeDesc.IsEnum || text.Mapping.TypeDesc.IsPrimitive))) 660if (TypeDesc!.IsRoot) 666while (start.BaseMapping != null && !start.BaseMapping.IsSequence && !start.BaseMapping.TypeDesc!.IsRoot) 678get { return _isSequence && !TypeDesc!.IsRoot; }
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (7)
40!mapping.TypeDesc!.IsRoot) 1330if (structMapping.TypeDesc!.IsRoot) 1513if (structMapping.TypeDesc!.IsRoot && isNull) 1533if (xsiType == null || (!structMapping.TypeDesc.IsRoot && QNameEqual(xsiType, structMapping.TypeName, defaultNamespace))) 1535if (structMapping.TypeDesc.IsRoot) 1544else if (structMapping.TypeDesc.IsRoot && WriteEnumAndArrayTypes(out o, xsiType, defaultNamespace)) 1550if (structMapping.TypeDesc.IsRoot)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
46!mapping.TypeDesc!.IsRoot) 509if (mapping.IsSoap && mapping.TypeDesc!.IsRoot) return; 527if (mapping.TypeDesc.IsRoot) 562if (!mapping.TypeDesc.IsRoot)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
483if (itemTypeMapping.TypeDesc!.IsRoot)
System\Xml\Serialization\Types.cs (1)
427return baseTypeDesc.IsRoot;
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1047else if (itemTypeMapping is StructMapping && itemTypeMapping.TypeDesc!.IsRoot)
System\Xml\Serialization\XmlSchemaExporter.cs (3)
231if (!accessor.Mapping!.IncludeInSchema && !accessor.Mapping.TypeDesc!.IsRoot) 944if (mapping is StructMapping && mapping.TypeDesc!.IsRoot) 961if (mapping.TypeDesc!.IsRoot)
System\Xml\Serialization\XmlSerializationReader.cs (9)
2391!mapping.TypeDesc!.IsRoot) 3236if (structMapping.TypeDesc.IsRoot) 3255if (!structMapping.TypeDesc.IsRoot) 3261if (structMapping.TypeDesc.IsRoot) 3270WriteDerivedTypes(structMapping, !useReflection && !structMapping.TypeDesc.IsRoot, typeName); 3271if (structMapping.TypeDesc.IsRoot) WriteEnumAndArrayTypes(); 3272if (structMapping.TypeDesc.IsRoot) 3280if (structMapping.TypeDesc.IsRoot) 3421if (structMapping.TypeDesc!.IsRoot)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
1385if (structMapping.TypeDesc.IsRoot) 1420if (!structMapping.TypeDesc.IsRoot) 1434if (structMapping.TypeDesc.IsRoot) 1453WriteDerivedTypes(structMapping, !structMapping.TypeDesc.IsRoot, typeName); 1454if (structMapping.TypeDesc.IsRoot) WriteEnumAndArrayTypes(); 1456if (structMapping.TypeDesc.IsRoot)
System\Xml\Serialization\XmlSerializationWriter.cs (5)
2340!typeMapping.TypeDesc!.IsRoot) 3078if (mapping.IsSoap && mapping.TypeDesc!.IsRoot) return; 3123if (mapping.TypeDesc.IsRoot) 3126if (mapping.TypeDesc.IsRoot) 3171if (!mapping.TypeDesc.IsRoot)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
973if (mapping.TypeDesc.IsRoot) 976if (mapping.TypeDesc.IsRoot) 1052if (!mapping.TypeDesc.IsRoot)