2 writes to BaseTypeDesc
System.Private.Xml (2)
System\Xml\Serialization\SchemaImporter.cs (1)
98typeDescToChange.BaseTypeDesc = baseTypeDesc;
System\Xml\Serialization\Types.cs (1)
939typeDesc.BaseTypeDesc = GetTypeDesc(baseType, memberInfo, false, false);
27 references to BaseTypeDesc
System.Private.Xml (27)
System\Xml\Serialization\Models.cs (1)
212CheckSupportedMember(typeDesc.BaseTypeDesc, member, type);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
297if (mappings[i].TypeDesc!.IsOptionalValue && mappings[i].TypeDesc!.BaseTypeDesc!.UseReflection)
System\Xml\Serialization\SchemaImporter.cs (6)
93while (typeDescToChange.BaseTypeDesc != null && typeDescToChange.BaseTypeDesc != baseTypeDesc) 94typeDescToChange = typeDescToChange.BaseTypeDesc; 96if (typeDescToChange.BaseTypeDesc != null && typeDescToChange.BaseTypeDesc != baseTypeDesc) 97throw new InvalidOperationException(SR.Format(SR.XmlInvalidBaseType, structMapping.TypeDesc!.FullName, baseType.FullName, typeDescToChange.BaseTypeDesc.FullName));
System\Xml\Serialization\SoapReflectionImporter.cs (4)
202TypeDesc? baseTypeDesc = model.TypeDesc.BaseTypeDesc; 207TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc! : TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace)!; 208string xsdTypeName = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc!.Name : dataType; 358if (model.TypeDesc.BaseTypeDesc != null)
System\Xml\Serialization\Types.cs (2)
425typeDesc = typeDesc.BaseTypeDesc; 453leastDerivedTypeDesc = leastDerivedTypeDesc.BaseTypeDesc;
System\Xml\Serialization\XmlReflectionImporter.cs (8)
286throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, model.TypeDesc.BaseTypeDesc!.FullName, "XmlRoot")); 404TypeDesc modelTypeDesc = TypeScope.IsOptionalValue(model.Type) ? model.TypeDesc.BaseTypeDesc! : model.TypeDesc; 447TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc! : TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace)!; 451ImportTypeMapping(_modelScope.GetTypeModel(model.TypeDesc.BaseTypeDesc!.Type!), ns, context, dataType, null, repeats, openModel, limiter); 799if (model.TypeDesc.BaseTypeDesc != null) 1661throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement")); 1834throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement")); 1902throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
System\Xml\Serialization\XmlSerializationReader.cs (1)
2638if (mappings[i].TypeDesc!.IsOptionalValue && mappings[i].TypeDesc!.BaseTypeDesc!.UseReflection)
System\Xml\Serialization\XmlSerializationWriter.cs (3)
1941typeDesc = typeDesc.BaseTypeDesc!; 3920string fullTypeName = element.Mapping.TypeDesc!.BaseTypeDesc!.CSharpName; 3922if (!element.Mapping.TypeDesc.BaseTypeDesc.UseReflection)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
1919SourceInfo castedSource = source.CastTo(element.Mapping.TypeDesc.BaseTypeDesc!);