36 references to FormatterName
System.Private.Xml (36)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (8)
729if (text.Mapping!.TypeDesc == StringTypeDesc || text.Mapping.TypeDesc!.FormatterName == "String") 959if (element.Mapping.TypeDesc.FormatterName == "ByteArrayBase64") 963else if (element.Mapping.TypeDesc.FormatterName == "ByteArrayHex") 1278else if (mapping.TypeDesc!.FormatterName == "String") 1294object retObj = mapping.TypeDesc.FormatterName switch 1312_ => throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}")), 1318string methodName = $"To{mapping.TypeDesc.FormatterName}"; 1322throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}"));
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (8)
1157if (typeDesc == ReflectionXmlSerializationReader.StringTypeDesc || typeDesc.FormatterName == "String") 1169else if (o is byte[] && typeDesc.FormatterName == "ByteArrayHex") 1176if (typeDesc.FormatterName == "DateTime") 1181else if (typeDesc.FormatterName == "Date") 1186else if (typeDesc.FormatterName == "Time") 1213switch (typeDesc.FormatterName) 1234else if (o is char && typeDesc.FormatterName == "Char") 1255string 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)
2904else if (mapping.TypeDesc!.FormatterName == "String") 2925Writer.Write(mapping.TypeDesc.FormatterName); 4197if (text.Mapping!.TypeDesc == StringTypeDesc || text.Mapping.TypeDesc!.FormatterName == "String") 4843switch (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") 3318switch (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}",