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