33 references to XmlCustomFormatter
System.Private.Xml (33)
System\Xml\Serialization\Xmlcustomformatter.cs (1)
18
/// The <see cref="
XmlCustomFormatter
"/> class provides a set of static methods for converting
System\Xml\Serialization\XmlSchemaExporter.cs (3)
892
long val =
XmlCustomFormatter
.ToEnum((string)value, values, em.TypeName, false);
893
return val != 0 ?
XmlCustomFormatter
.FromEnum(val, names, ids, mapping.TypeDesc!.FullName) : null;
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 (11)
916
return
XmlCustomFormatter
.ToByteArrayBase64(value);
931
return
XmlCustomFormatter
.ToByteArrayHex(value);
1087
return
XmlCustomFormatter
.ToDateTime(value);
1092
return
XmlCustomFormatter
.ToDate(value);
1097
return
XmlCustomFormatter
.ToTime(value);
1102
return
XmlCustomFormatter
.ToChar(value);
1107
return
XmlCustomFormatter
.ToEnum(value, h, typeName, true);
1113
return
XmlCustomFormatter
.ToXmlName(value);
1119
return
XmlCustomFormatter
.ToXmlNCName(value);
1125
return
XmlCustomFormatter
.ToXmlNmToken(value);
1131
return
XmlCustomFormatter
.ToXmlNmTokens(value);
System\Xml\Serialization\XmlSerializationWriter.cs (17)
120
return
XmlCustomFormatter
.FromByteArrayHex(value);
125
return
XmlCustomFormatter
.FromDateTime(value);
130
return
XmlCustomFormatter
.TryFormatDateTime(value, destination, out charsWritten);
135
return
XmlCustomFormatter
.FromDate(value);
140
return
XmlCustomFormatter
.FromTime(value);
145
return
XmlCustomFormatter
.FromChar(value);
150
return
XmlCustomFormatter
.FromEnum(value, values, ids, null);
155
return
XmlCustomFormatter
.FromEnum(value, values, ids, typeName);
161
return
XmlCustomFormatter
.FromXmlName(name);
167
return
XmlCustomFormatter
.FromXmlNCName(ncName);
173
return
XmlCustomFormatter
.FromXmlNmToken(nmToken);
179
return
XmlCustomFormatter
.FromXmlNmTokens(nmTokens);
408
XmlCustomFormatter
.WriteArrayBase64(_w, (byte[])o, 0, ((byte[])o).Length);
1007
XmlCustomFormatter
.WriteArrayBase64(_w, value, 0, value.Length);
1023
XmlCustomFormatter
.WriteArrayBase64(_w, value, 0, value.Length);
1042
XmlCustomFormatter
.WriteArrayBase64(_w, value, 0, value.Length);
1128
XmlCustomFormatter
.WriteArrayBase64(_w, value, 0, value.Length);