37 references to FormatterName
System.Private.Xml (37)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (8)
729if (text.Mapping!.TypeDesc == StringTypeDesc || text.Mapping.TypeDesc!.FormatterName == "String") 962if (element.Mapping.TypeDesc.FormatterName == "ByteArrayBase64") 966else if (element.Mapping.TypeDesc.FormatterName == "ByteArrayHex") 1283else if (mapping.TypeDesc!.FormatterName == "String") 1299object retObj = mapping.TypeDesc.FormatterName switch 1317_ => throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}")), 1323string methodName = $"To{mapping.TypeDesc.FormatterName}"; 1327throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}"));
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (9)
257return mapping.TypeDesc.FormatterName switch 1300if (typeDesc == ReflectionXmlSerializationReader.StringTypeDesc || typeDesc.FormatterName == "String") 1312else if (o is byte[] && typeDesc.FormatterName == "ByteArrayHex") 1319if (typeDesc.FormatterName == "DateTime") 1324else if (typeDesc.FormatterName == "Date") 1329else if (typeDesc.FormatterName == "Time") 1356switch (typeDesc.FormatterName) 1377else if (o is char && typeDesc.FormatterName == "Char") 1398string stringValue = typeDesc.FormatterName switch
System\Xml\Serialization\XmlSchemaExporter.cs (2)
916if (pm.TypeDesc.FormatterName == "String") 926string defaultValue = XmlCustomFormatter.FromDefaultValue(value, pm.TypeDesc.FormatterName!);
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1763XmlCustomFormatter.ToDefaultValue(enumeration.Value!, sourceTypeDesc.FormatterName!);
System\Xml\Serialization\XmlSerializationReader.cs (4)
2907else if (mapping.TypeDesc!.FormatterName == "String") 2928Writer.Write(mapping.TypeDesc.FormatterName); 4200if (text.Mapping!.TypeDesc == StringTypeDesc || text.Mapping.TypeDesc!.FormatterName == "String") 4848switch (element.Mapping.TypeDesc.FormatterName)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (8)
864else if (mapping.TypeDesc!.FormatterName == "String") 922if ((mapping.TypeDesc.FormatterName == "ByteArrayBase64" && source == "false") 923|| (mapping.TypeDesc.FormatterName == "ByteArrayHex" && source == "false") 924|| (mapping.TypeDesc.FormatterName == "XmlQualifiedName")) 931$"To{mapping.TypeDesc.FormatterName}", 939$"To{mapping.TypeDesc.FormatterName}", 2508if (text.Mapping!.TypeDesc == StringTypeDesc || text.Mapping.TypeDesc!.FormatterName == "String") 3314switch (element.Mapping.TypeDesc.FormatterName)
System\Xml\Serialization\XmlSerializationWriter.cs (2)
2466if (typeDesc == StringTypeDesc || typeDesc.FormatterName == "String") 2484Writer.Write(typeDesc.FormatterName);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
145if (typeDesc == StringTypeDesc || typeDesc.FormatterName == "String") 174if (typeDesc.FormatterName == "XmlQualifiedName") 180$"From{typeDesc.FormatterName}",