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