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