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