5 writes to BaseMapping
System.Private.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (2)
366mapping.BaseMapping = baseMapping; 412mapping.BaseMapping ??= GetRootMapping();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
812mapping.BaseMapping = baseMapping; 928mapping.BaseMapping ??= GetRootMapping();
System\Xml\Serialization\XmlSchemaImporter.cs (1)
561structMapping.BaseMapping = (StructMapping)baseMapping;
35 references to BaseMapping
System.Private.Xml (35)
System\Xml\Serialization\Mappings.cs (13)
554mapping = mapping.BaseMapping; 587if (BaseMapping != null) 589MemberMapping? baseMember = BaseMapping.FindDeclaringMapping(member, out declaringMapping, parent); 617if (BaseMapping == null || BaseMapping.TypeDesc!.IsRoot) 621else if (BaseMapping.HasSimpleContent) 626throw new InvalidOperationException(SR.Format(SR.XmlIllegalSimpleContentExtension, TypeDesc!.FullName, BaseMapping.TypeDesc.FullName)); 637if (!_hasSimpleContent && text != null && !text.Mapping!.TypeDesc!.CanBeTextValue && !(BaseMapping != null && !BaseMapping.TypeDesc!.IsRoot && (text.Mapping.TypeDesc.IsEnum || text.Mapping.TypeDesc.IsPrimitive))) 666while (start.BaseMapping != null && !start.BaseMapping.IsSequence && !start.BaseMapping.TypeDesc!.IsRoot) 667start = start.BaseMapping;
System\Xml\Serialization\SoapReflectionImporter.cs (3)
363int baseIndex = limiter.DeferredWorkItems.IndexOf(mapping.BaseMapping!); 405if (mapping.BaseMapping != null) 407if (mapping.BaseMapping.Declares(member, mapping.TypeName!)) continue;
System\Xml\Serialization\Types.cs (5)
1027if (mapping.BaseMapping == null) 1036if (mapping.BaseMapping != null) 1038GetAllMembers(mapping.BaseMapping, list); 1063if (mapping.BaseMapping != null) 1065GetSettableMembers(mapping.BaseMapping, list);
System\Xml\Serialization\XmlReflectionImporter.cs (6)
814ICollection values = mapping.BaseMapping.LocalAttributes.Values; 819if (!mapping.BaseMapping.HasExplicitSequence()) 821values = mapping.BaseMapping.LocalElements.Values; 863if (mapping.BaseMapping != null) 865if (mapping.BaseMapping.Declares(member, mapping.TypeName)) continue; 930if (mapping.XmlnsMember != null && mapping.BaseMapping.HasXmlnsMember)
System\Xml\Serialization\XmlSchemaExporter.cs (7)
986if (mapping.BaseMapping != null && mapping.BaseMapping.IncludeInSchema) 988if (mapping.BaseMapping.IsAnonymousType) 990throw new InvalidOperationException(SR.Format(SR.XmlAnonymousBaseType, mapping.TypeDesc.Name, mapping.BaseMapping.TypeDesc!.Name, "AnonymousType", "false")); 996extension.BaseTypeName = ExportStructMapping(mapping.BaseMapping, mapping.Namespace, null); 1003extension.BaseTypeName = ExportStructMapping(mapping.BaseMapping, mapping.Namespace, null); 1006model.IsMixed = XmlSchemaImporter.IsMixed((XmlSchemaComplexType)_types[mapping.BaseMapping]!);
System\Xml\Serialization\XmlSchemaImporter.cs (1)
565CodeIdentifiers membersScope = structMapping.BaseMapping.Scope.Clone();