37 references to IsRoot
System.Xml (37)
System\Xml\Serialization\Mappings.cs (4)
528if (BaseMapping == null || BaseMapping.TypeDesc.IsRoot) { 564if (TypeDesc.IsRoot) 570while (!start.BaseMapping.IsSequence && start.BaseMapping != null && !start.BaseMapping.TypeDesc.IsRoot) 580get { return isSequence && !TypeDesc.IsRoot; }
System\Xml\Serialization\SoapCodeExporter.cs (1)
121if (mapping.TypeDesc.IsRoot) {
System\Xml\Serialization\SoapReflectionImporter.cs (1)
461if (itemTypeMapping.TypeDesc.IsRoot) {
System\Xml\Serialization\SoapSchemaExporter.cs (2)
277if (mapping.TypeDesc.IsRoot) return ExportRootMapping(mapping); 346if (derived.IncludeInSchema) ExportStructMapping(derived, mapping.TypeDesc.IsRoot ? null : mapping.Namespace);
System\Xml\Serialization\Types.cs (1)
391return baseTypeDesc.IsRoot;
System\Xml\Serialization\XmlCodeExporter.cs (2)
489if (mapping.TypeDesc.IsRoot) { 495string baseName = mapping.TypeDesc.BaseTypeDesc == null || mapping.TypeDesc.BaseTypeDesc.IsRoot ? string.Empty : mapping.TypeDesc.BaseTypeDesc.FullName;
System\Xml\Serialization\XmlReflectionImporter.cs (1)
910else if (itemTypeMapping is StructMapping && itemTypeMapping.TypeDesc.IsRoot) {
System\Xml\Serialization\XmlSchemaExporter.cs (3)
228if (!accessor.Mapping.IncludeInSchema && !accessor.Mapping.TypeDesc.IsRoot) { 845if (mapping is StructMapping && mapping.TypeDesc.IsRoot) { 858if (mapping.TypeDesc.IsRoot) {
System\Xml\Serialization\XmlSerializationReader.cs (8)
2256!mapping.TypeDesc.IsRoot) { 3028if (structMapping.TypeDesc.IsRoot) { 3045if (!structMapping.TypeDesc.IsRoot) { 3050if (structMapping.TypeDesc.IsRoot) { 3056WriteDerivedTypes(structMapping, !useReflection && !structMapping.TypeDesc.IsRoot, typeName); 3057if (structMapping.TypeDesc.IsRoot) WriteEnumAndArrayTypes(); 3060if (structMapping.TypeDesc.IsRoot) 3191if(structMapping.TypeDesc.IsRoot)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
1415if (structMapping.TypeDesc.IsRoot) { 1449if (!structMapping.TypeDesc.IsRoot) { 1462if (structMapping.TypeDesc.IsRoot) { 1484WriteDerivedTypes(structMapping, !structMapping.TypeDesc.IsRoot, typeName); 1485if (structMapping.TypeDesc.IsRoot) WriteEnumAndArrayTypes(); 1487if (structMapping.TypeDesc.IsRoot) {
System\Xml\Serialization\XmlSerializationWriter.cs (5)
1382!typeMapping.TypeDesc.IsRoot) { 2026if (mapping.IsSoap && mapping.TypeDesc.IsRoot) return; 2066if (mapping.TypeDesc.IsRoot) 2071if (mapping.TypeDesc.IsRoot) { 2109if (!mapping.TypeDesc.IsRoot) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
939if (mapping.TypeDesc.IsRoot) 942if (mapping.TypeDesc.IsRoot) { 1020if (!mapping.TypeDesc.IsRoot) {