45 references to IsRoot
System.Private.Xml (45)
System\Xml\Serialization\Mappings.cs (5)
631
if (BaseMapping == null || BaseMapping.TypeDesc!.
IsRoot
)
651
if (!_hasSimpleContent && text != null && !text.Mapping!.TypeDesc!.CanBeTextValue && !(BaseMapping != null && !BaseMapping.TypeDesc!.
IsRoot
&& (text.Mapping.TypeDesc.IsEnum || text.Mapping.TypeDesc.IsPrimitive)))
674
if (TypeDesc!.
IsRoot
)
680
while (start.BaseMapping != null && !start.BaseMapping.IsSequence && !start.BaseMapping.TypeDesc!.
IsRoot
)
692
get { return _isSequence && !TypeDesc!.
IsRoot
; }
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (7)
47
!mapping.TypeDesc!.
IsRoot
)
1432
if (structMapping.TypeDesc!.
IsRoot
)
1615
if (structMapping.TypeDesc!.
IsRoot
&& isNull)
1635
if (xsiType == null || (!structMapping.TypeDesc.
IsRoot
&& QNameEqual(xsiType, structMapping.TypeName, defaultNamespace)))
1637
if (structMapping.TypeDesc.
IsRoot
)
1646
else if (structMapping.TypeDesc.
IsRoot
&& WriteEnumAndArrayTypes(out o, xsiType, defaultNamespace))
1652
if (structMapping.TypeDesc.
IsRoot
)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
47
!mapping.TypeDesc!.
IsRoot
)
603
if (mapping.IsSoap && mapping.TypeDesc!.
IsRoot
) return;
621
if (mapping.TypeDesc.
IsRoot
)
656
if (!mapping.TypeDesc.
IsRoot
)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
483
if (itemTypeMapping.TypeDesc!.
IsRoot
)
System\Xml\Serialization\Types.cs (1)
428
return baseTypeDesc.
IsRoot
;
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1052
else if (itemTypeMapping is StructMapping && itemTypeMapping.TypeDesc!.
IsRoot
)
System\Xml\Serialization\XmlSchemaExporter.cs (3)
231
if (!accessor.Mapping!.IncludeInSchema && !accessor.Mapping.TypeDesc!.
IsRoot
)
940
if (mapping is StructMapping && mapping.TypeDesc!.
IsRoot
)
957
if (mapping.TypeDesc!.
IsRoot
)
System\Xml\Serialization\XmlSerializationReader.cs (9)
2452
!mapping.TypeDesc!.
IsRoot
)
3297
if (structMapping.TypeDesc.
IsRoot
)
3316
if (!structMapping.TypeDesc.
IsRoot
)
3322
if (structMapping.TypeDesc.
IsRoot
)
3331
WriteDerivedTypes(structMapping, !useReflection && !structMapping.TypeDesc.
IsRoot
, typeName);
3332
if (structMapping.TypeDesc.
IsRoot
) WriteEnumAndArrayTypes();
3333
if (structMapping.TypeDesc.
IsRoot
)
3341
if (structMapping.TypeDesc.
IsRoot
)
3482
if (structMapping.TypeDesc!.
IsRoot
)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
1461
if (structMapping.TypeDesc.
IsRoot
)
1496
if (!structMapping.TypeDesc.
IsRoot
)
1510
if (structMapping.TypeDesc.
IsRoot
)
1529
WriteDerivedTypes(structMapping, !structMapping.TypeDesc.
IsRoot
, typeName);
1530
if (structMapping.TypeDesc.
IsRoot
) WriteEnumAndArrayTypes();
1532
if (structMapping.TypeDesc.
IsRoot
)
System\Xml\Serialization\XmlSerializationWriter.cs (5)
2387
!typeMapping.TypeDesc!.
IsRoot
)
3125
if (mapping.IsSoap && mapping.TypeDesc!.
IsRoot
) return;
3170
if (mapping.TypeDesc.
IsRoot
)
3173
if (mapping.TypeDesc.
IsRoot
)
3218
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
)