34 writes to TypeName
System.Private.Xml (34)
System\Xml\Serialization\Mappings.cs (1)
1069
this.
TypeName
= xsiType.Name;
System\Xml\Serialization\SchemaImporter.cs (1)
117
mapping.
TypeName
= Soap.UrType;
System\Xml\Serialization\SoapReflectionImporter.cs (7)
128
element.Mapping.
TypeName
= elementName;
232
mapping.
TypeName
= Soap.UrType;
287
mapping.
TypeName
= baseMapping.TypeName;
315
mapping.
TypeName
= typeName;
525
mapping.
TypeName
= uniqueName;
549
mapping.
TypeName
= mapping.TypeDesc.DataType!.Name;
570
mapping.
TypeName
= typeName;
System\Xml\Serialization\XmlReflectionImporter.cs (8)
558
serializableMapping.
TypeName
= qname.Name;
639
mapping.
TypeName
= Soap.UrType;
685
mapping.
TypeName
= baseMapping.TypeName;
748
mapping.
TypeName
= typeName;
1010
mapping.
TypeName
= null;
1087
mapping.
TypeName
= uniqueName;
1180
mapping.
TypeName
= mapping.TypeDesc.DataType!.Name;
1203
mapping.
TypeName
= typeName;
System\Xml\Serialization\XmlSchemaImporter.cs (17)
45
mapping.
TypeName
= mapping.TypeDesc!.DataType!.Name;
560
structMapping.
TypeName
= string.IsNullOrEmpty(type.Name) ? null : identifier;
616
structMapping.
TypeName
= identifier;
1184
textMapping.
TypeName
= textMapping.TypeDesc.Name;
1206
mapping.
TypeName
= mapping.TypeDesc.Name;
1284
arrayMapping.
TypeName
= identifier;
1296
arrayMapping.
TypeName
= string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(arrayMapping.TypeDesc!.Name)}" : type.Name;
1313
arrayMapping.
TypeName
= string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(itemAccessor.Mapping.TypeDesc.Name)}" : type.Name;
1396
mapping.
TypeName
= mapping.TypeDesc.Name;
1492
mapping.
TypeName
= mapping.TypeDesc.Name;
1553
xmlnsMapping.
TypeName
= xmlnsMapping.TypeDesc.Name;
1592
mapping.
TypeName
= mapping.TypeDesc.DataType!.Name;
1704
mapping.
TypeName
= dataType.Name;
1746
enumMapping.
TypeName
= identifier;
1802
enumMapping.
TypeName
= typeName;
1832
mapping.
TypeName
= sourceTypeDesc.DataType!.Name;
1848
mapping.
TypeName
= typeDesc.DataType!.Name;
86 references to TypeName
System.Private.Xml (86)
System\Xml\Serialization\Mappings.cs (2)
599
throw new InvalidOperationException(SR.Format(SR.XmlHiddenMember, parent, member.Name, member.TypeDesc!.FullName, this.
TypeName
, _members[i].Name, _members[i].TypeDesc!.FullName));
602
throw new InvalidOperationException(SR.Format(SR.XmlInvalidXmlOverride, parent, member.Name, this.
TypeName
, _members[i].Name));
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (12)
43
mapping.
TypeName
!,
913
ReadReferencingElement(mapping.
TypeName
, mapping.Namespace, out fixup!.Ids![fixupIndex])
914
: ReadReferencedElement(mapping.
TypeName
, mapping.Namespace);
1086
rre = ReadReferencingElement(arrayMapping.
TypeName
, arrayMapping.Namespace, out fixup!.Ids![fixupIndex]);
1090
rre = ReadReferencedElement(arrayMapping.
TypeName
, arrayMapping.Namespace);
1337
throw CreateAbstractTypeException(structMapping.
TypeName
!, structMapping.Namespace);
1533
if (xsiType == null || (!structMapping.TypeDesc.IsRoot && QNameEqual(xsiType, structMapping.
TypeName
, defaultNamespace)))
1563
throw CreateAbstractTypeException(structMapping.
TypeName
!, structMapping.Namespace);
1628
structMapping.FindDeclaringMapping(mapping, out StructMapping? declaringMapping, structMapping.
TypeName
!);
1773
if (QNameEqual(xsiType, enumMapping.
TypeName
, defaultNamespace))
1791
if (QNameEqual(xsiType, arrayMapping.
TypeName
, defaultNamespace))
1809
if (QNameEqual(xsiType, derived.
TypeName
, defaultNamespace))
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (10)
50
mapping.
TypeName
!,
52
CreateXmlSerializationWriteCallback(mapping, mapping.
TypeName
!, mapping.Namespace, mapping.TypeDesc.IsNullable)
318
string name = writeAccessor ? element.Name : element.Mapping!.
TypeName
!;
487
WriteNullableQualifiedNameEncoded(name, ns, o, new XmlQualifiedName(mapping.
TypeName
, mapping.Namespace));
491
WriteElementQualifiedName(name, ns, o, new XmlQualifiedName(mapping.
TypeName
, mapping.Namespace));
566
WriteXsiType(mapping.
TypeName
!, mapping.Namespace);
669
WriteXsiType(em.
TypeName
!, ns);
678
WriteXsiType(am.
TypeName
!, ns);
738
WriteXsiType(mapping.
TypeName
!, mapping.Namespace);
960
xmlQualifiedName = new XmlQualifiedName(mapping.
TypeName
, mapping.Namespace);
System\Xml\Serialization\SoapReflectionImporter.cs (11)
261
TypeMapping? existingMapping = (TypeMapping?)_nullables[baseMapping.
TypeName
!, baseMapping.Namespace];
287
mapping.TypeName = baseMapping.
TypeName
;
290
_nullables.Add(baseMapping.
TypeName
, mapping.Namespace, mapping);
407
if (mapping.BaseMapping.Declares(member, mapping.
TypeName
!)) continue;
436
ArrayMapping? existingMapping = (ArrayMapping?)_types[mapping.
TypeName
!, mapping.Namespace];
447
_types[mapping.
TypeName
!, mapping.Namespace] = mapping;
451
_types.Add(mapping.
TypeName
, mapping.Namespace, mapping);
473
itemTypeName = itemTypeMapping.
TypeName
!;
492
itemTypeName = itemTypeMapping.
TypeName
!;
498
itemTypeName = itemTypeMapping.
TypeName
!;
732
element.Name = mapping.
TypeName
;
System\Xml\Serialization\XmlMemberMapping.cs (1)
71
get { return Accessor!.Mapping != null ? Accessor.Mapping.
TypeName
: string.Empty; }
System\Xml\Serialization\XmlMembersMapping.cs (1)
41
get { return Accessor.Mapping!.
TypeName
; }
System\Xml\Serialization\XmlReflectionImporter.cs (10)
355
ArrayMapping? existingMapping = mapping.IsAnonymousType ? null : (ArrayMapping?)_types[existing.Mapping.
TypeName
!, existing.Mapping.Namespace];
365
_types[existing.Mapping.
TypeName
!, existing.Mapping.Namespace] = mapping;
653
existingMapping = (TypeMapping?)_nullables[baseMapping.
TypeName
!, baseMapping.Namespace];
685
mapping.TypeName = baseMapping.
TypeName
;
690
_nullables.Add(baseMapping.
TypeName
, baseMapping.Namespace, mapping);
865
if (mapping.BaseMapping.Declares(member, mapping.
TypeName
)) continue;
1115
ArrayMapping? existingMapping = (ArrayMapping?)_types[mapping.
TypeName
, mapping.Namespace];
1127
_types[mapping.
TypeName
, mapping.Namespace] = mapping;
1134
_types.Add(mapping.
TypeName
, mapping.Namespace, mapping);
2138
throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdDuplicate, choiceMapping.
TypeName
, choiceId));
System\Xml\Serialization\XmlSchemaExporter.cs (8)
253
string? newTypeName = mapping.
TypeName
;
544
ExportTypeMembers(type, mapping.Members!, mapping.
TypeName
!, ns, false, false);
607
type.Name = mapping.
TypeName
;
619
throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Type " + mapping.
TypeName
+ " from namespace '" + ns + "' is an invalid array mapping"));
892
long val = XmlCustomFormatter.ToEnum((string)value, values, em.
TypeName
, false);
980
type.Name = mapping.
TypeName
;
1011
ExportTypeMembers(type, mapping.Members!, mapping.
TypeName
!, mapping.Namespace, mapping.HasSimpleContent, openModel);
1149
dataType.Name = mapping.
TypeName
;
System\Xml\Serialization\XmlSchemaImporter.cs (1)
589
MemberMapping? baseMember = ((StructMapping)baseMapping).FindDeclaringMapping(structMapping.Members[i], out declaringMapping, structMapping.
TypeName
);
System\Xml\Serialization\XmlSerializationReader.cs (10)
2403
WriteID(mapping.
TypeName
);
3063
WriteQNameEqual("xsiType", derived.
TypeName
, derived.Namespace);
3100
WriteQNameEqual("xsiType", enumMapping.
TypeName
, enumMapping.Namespace);
3122
WriteQNameEqual("xsiType", arrayMapping.
TypeName
, arrayMapping.Namespace);
3258
WriteQNameEqual("xsiType", structMapping.
TypeName
, structMapping.Namespace);
3289
WriteQuotedCSharpString(structMapping.
TypeName
);
3343
structMapping.FindDeclaringMapping(mapping, out declaringMapping, structMapping.
TypeName
);
3439
WriteQuotedCSharpString(structMapping.
TypeName
);
4523
WriteID(arrayMapping.
TypeName
);
4741
WriteID(mapping.
TypeName
);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
1136
WriteQNameEqual("xsiType", derived.
TypeName
, derived.Namespace);
1179
WriteQNameEqual("xsiType", enumMapping.
TypeName
, enumMapping.Namespace);
1242
WriteQNameEqual("xsiType", arrayMapping.
TypeName
, arrayMapping.Namespace);
1426
WriteQNameEqual("xsiType", structMapping.
TypeName
, structMapping.Namespace);
1504
ilg.Ldstr(GetCSharpString(structMapping.
TypeName
));
1567
structMapping.FindDeclaringMapping(mapping, out declaringMapping, structMapping.
TypeName
);
System\Xml\Serialization\XmlSerializationWriter.cs (8)
2346
WriteQuotedCSharpString(typeMapping.
TypeName
);
2387
WriteQuotedCSharpString(mapping.
TypeName
);
2516
WriteQuotedCSharpString(mapping.
TypeName
);
2959
WriteQuotedCSharpString(mapping.
TypeName
);
3030
WriteQuotedCSharpString(mapping.
TypeName
);
3059
WriteQuotedCSharpString(mapping.
TypeName
);
3174
WriteQuotedCSharpString(mapping.
TypeName
);
3912
string name = writeAccessor ? element.Name : element.Mapping!.
TypeName
!;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
259
ilg.Ldstr(GetCSharpString(mapping.
TypeName
));
822
ilg.Ldstr(GetCSharpString(mapping.
TypeName
));
888
ilg.Ldstr(GetCSharpString(mapping.
TypeName
));
1062
ilg.Ldstr(GetCSharpString(mapping.
TypeName
));
1898
string name = writeAccessor ? element.Name : element.Mapping!.
TypeName
!;
System\Xml\Serialization\XmlTypeMapping.cs (1)
52
return Mapping!.
TypeName
;