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