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