45 references to IsRoot
System.Private.Xml (45)
System\Xml\Serialization\Mappings.cs (5)
631if (BaseMapping == null || BaseMapping.TypeDesc!.IsRoot) 651if (!_hasSimpleContent && text != null && !text.Mapping!.TypeDesc!.CanBeTextValue && !(BaseMapping != null && !BaseMapping.TypeDesc!.IsRoot && (text.Mapping.TypeDesc.IsEnum || text.Mapping.TypeDesc.IsPrimitive))) 674if (TypeDesc!.IsRoot) 680while (start.BaseMapping != null && !start.BaseMapping.IsSequence && !start.BaseMapping.TypeDesc!.IsRoot) 692get { return _isSequence && !TypeDesc!.IsRoot; }
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (7)
47!mapping.TypeDesc!.IsRoot) 1432if (structMapping.TypeDesc!.IsRoot) 1615if (structMapping.TypeDesc!.IsRoot && isNull) 1635if (xsiType == null || (!structMapping.TypeDesc.IsRoot && QNameEqual(xsiType, structMapping.TypeName, defaultNamespace))) 1637if (structMapping.TypeDesc.IsRoot) 1646else if (structMapping.TypeDesc.IsRoot && WriteEnumAndArrayTypes(out o, xsiType, defaultNamespace)) 1652if (structMapping.TypeDesc.IsRoot)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
47!mapping.TypeDesc!.IsRoot) 603if (mapping.IsSoap && mapping.TypeDesc!.IsRoot) return; 621if (mapping.TypeDesc.IsRoot) 656if (!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)
1052else 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)
2452!mapping.TypeDesc!.IsRoot) 3297if (structMapping.TypeDesc.IsRoot) 3316if (!structMapping.TypeDesc.IsRoot) 3322if (structMapping.TypeDesc.IsRoot) 3331WriteDerivedTypes(structMapping, !useReflection && !structMapping.TypeDesc.IsRoot, typeName); 3332if (structMapping.TypeDesc.IsRoot) WriteEnumAndArrayTypes(); 3333if (structMapping.TypeDesc.IsRoot) 3341if (structMapping.TypeDesc.IsRoot) 3482if (structMapping.TypeDesc!.IsRoot)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
1461if (structMapping.TypeDesc.IsRoot) 1496if (!structMapping.TypeDesc.IsRoot) 1510if (structMapping.TypeDesc.IsRoot) 1529WriteDerivedTypes(structMapping, !structMapping.TypeDesc.IsRoot, typeName); 1530if (structMapping.TypeDesc.IsRoot) WriteEnumAndArrayTypes(); 1532if (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)