36 references to FormatterName
System.Private.Xml (36)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (8)
710if (text.Mapping!.TypeDesc == StringTypeDesc || text.Mapping.TypeDesc!.FormatterName == "String") 891if (element.Mapping.TypeDesc.FormatterName == "ByteArrayBase64") 895else if (element.Mapping.TypeDesc.FormatterName == "ByteArrayHex") 1176else if (mapping.TypeDesc!.FormatterName == "String") 1192object retObj = mapping.TypeDesc.FormatterName switch 1210_ => throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}")), 1216string methodName = $"To{mapping.TypeDesc.FormatterName}"; 1220throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}"));
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (8)
1067if (typeDesc == ReflectionXmlSerializationReader.StringTypeDesc || typeDesc.FormatterName == "String") 1079else if (o is byte[] && typeDesc.FormatterName == "ByteArrayHex") 1086if (typeDesc.FormatterName == "DateTime") 1091else if (typeDesc.FormatterName == "Date") 1096else if (typeDesc.FormatterName == "Time") 1113switch (typeDesc.FormatterName) 1134else if (o is char && typeDesc.FormatterName == "Char") 1155string stringValue = typeDesc.FormatterName switch
System\Xml\Serialization\XmlSchemaExporter.cs (2)
920if (pm.TypeDesc.FormatterName == "String") 930string 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)
2843else if (mapping.TypeDesc!.FormatterName == "String") 2864Writer.Write(mapping.TypeDesc.FormatterName); 4105if (text.Mapping!.TypeDesc == StringTypeDesc || text.Mapping.TypeDesc!.FormatterName == "String") 4714switch (element.Mapping.TypeDesc.FormatterName)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (8)
788else if (mapping.TypeDesc!.FormatterName == "String") 846if ((mapping.TypeDesc.FormatterName == "ByteArrayBase64" && source == "false") 847|| (mapping.TypeDesc.FormatterName == "ByteArrayHex" && source == "false") 848|| (mapping.TypeDesc.FormatterName == "XmlQualifiedName")) 855$"To{mapping.TypeDesc.FormatterName}", 863$"To{mapping.TypeDesc.FormatterName}", 2392if (text.Mapping!.TypeDesc == StringTypeDesc || text.Mapping.TypeDesc!.FormatterName == "String") 3103switch (element.Mapping.TypeDesc.FormatterName)
System\Xml\Serialization\XmlSerializationWriter.cs (2)
2419if (typeDesc == StringTypeDesc || typeDesc.FormatterName == "String") 2437Writer.Write(typeDesc.FormatterName);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
145if (typeDesc == StringTypeDesc || typeDesc.FormatterName == "String") 174if (typeDesc.FormatterName == "XmlQualifiedName") 180$"From{typeDesc.FormatterName}",