45 references to IsRoot
System.Private.Xml (45)
System\Xml\Serialization\Mappings.cs (5)
616if (BaseMapping == null || BaseMapping.TypeDesc!.IsRoot) 636if (!_hasSimpleContent && text != null && !text.Mapping!.TypeDesc!.CanBeTextValue && !(BaseMapping != null && !BaseMapping.TypeDesc!.IsRoot && (text.Mapping.TypeDesc.IsEnum || text.Mapping.TypeDesc.IsPrimitive))) 659if (TypeDesc!.IsRoot) 665while (start.BaseMapping != null && !start.BaseMapping.IsSequence && !start.BaseMapping.TypeDesc!.IsRoot) 677get { return _isSequence && !TypeDesc!.IsRoot; }
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (7)
40!mapping.TypeDesc!.IsRoot) 1340if (structMapping.TypeDesc!.IsRoot) 1523if (structMapping.TypeDesc!.IsRoot && isNull) 1543if (xsiType == null || (!structMapping.TypeDesc.IsRoot && QNameEqual(xsiType, structMapping.TypeName, defaultNamespace))) 1545if (structMapping.TypeDesc.IsRoot) 1554else if (structMapping.TypeDesc.IsRoot && WriteEnumAndArrayTypes(out o, xsiType, defaultNamespace)) 1560if (structMapping.TypeDesc.IsRoot)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
47!mapping.TypeDesc!.IsRoot) 584if (mapping.IsSoap && mapping.TypeDesc!.IsRoot) return; 602if (mapping.TypeDesc.IsRoot) 637if (!mapping.TypeDesc.IsRoot)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
483if (itemTypeMapping.TypeDesc!.IsRoot)
System\Xml\Serialization\Types.cs (1)
428return baseTypeDesc.IsRoot;
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1051else if (itemTypeMapping is StructMapping && itemTypeMapping.TypeDesc!.IsRoot)
System\Xml\Serialization\XmlSchemaExporter.cs (3)
231if (!accessor.Mapping!.IncludeInSchema && !accessor.Mapping.TypeDesc!.IsRoot) 940if (mapping is StructMapping && mapping.TypeDesc!.IsRoot) 957if (mapping.TypeDesc!.IsRoot)
System\Xml\Serialization\XmlSerializationReader.cs (9)
2417!mapping.TypeDesc!.IsRoot) 3262if (structMapping.TypeDesc.IsRoot) 3281if (!structMapping.TypeDesc.IsRoot) 3287if (structMapping.TypeDesc.IsRoot) 3296WriteDerivedTypes(structMapping, !useReflection && !structMapping.TypeDesc.IsRoot, typeName); 3297if (structMapping.TypeDesc.IsRoot) WriteEnumAndArrayTypes(); 3298if (structMapping.TypeDesc.IsRoot) 3306if (structMapping.TypeDesc.IsRoot) 3447if (structMapping.TypeDesc!.IsRoot)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
1384if (structMapping.TypeDesc.IsRoot) 1419if (!structMapping.TypeDesc.IsRoot) 1433if (structMapping.TypeDesc.IsRoot) 1452WriteDerivedTypes(structMapping, !structMapping.TypeDesc.IsRoot, typeName); 1453if (structMapping.TypeDesc.IsRoot) WriteEnumAndArrayTypes(); 1455if (structMapping.TypeDesc.IsRoot)
System\Xml\Serialization\XmlSerializationWriter.cs (5)
2387!typeMapping.TypeDesc!.IsRoot) 3125if (mapping.IsSoap && mapping.TypeDesc!.IsRoot) return; 3170if (mapping.TypeDesc.IsRoot) 3173if (mapping.TypeDesc.IsRoot) 3218if (!mapping.TypeDesc.IsRoot)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
973if (mapping.TypeDesc.IsRoot) 976if (mapping.TypeDesc.IsRoot) 1052if (!mapping.TypeDesc.IsRoot)