39 references to XmlCustomFormatter
System.Xml (39)
System\Xml\Serialization\XmlCodeExporter.cs (7)
258
dtString =
XmlCustomFormatter
.FromDate(dt);
262
dtString =
XmlCustomFormatter
.FromDateTime(dt);
266
dtString =
XmlCustomFormatter
.FromDateTime(dt);
334
long val =
XmlCustomFormatter
.ToEnum(defaultValue, values, em.TypeName, true);
335
return
XmlCustomFormatter
.FromEnum(val, names, ids, em.TypeDesc.FullName);
353
return
XmlCustomFormatter
.ToDateTime(defaultValue);
367
return
XmlCustomFormatter
.ToDefaultValue(defaultValue, pm.TypeDesc.FormatterName);
System\Xml\Serialization\Xmlcustomformatter.cs (1)
21
/// The <see cref="
XmlCustomFormatter
"/> class provides a set of static methods for converting
System\Xml\Serialization\XmlSchemaExporter.cs (3)
800
long val =
XmlCustomFormatter
.ToEnum((string)value, values, em.TypeName, false);
801
return val != 0 ?
XmlCustomFormatter
.FromEnum(val, names, ids, mapping.TypeDesc.FullName) : null;
833
string defaultValue =
XmlCustomFormatter
.FromDefaultValue(value, pm.TypeDesc.FormatterName);
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1624
XmlCustomFormatter
.ToDefaultValue(enumeration.Value, sourceTypeDesc.FormatterName);
System\Xml\Serialization\XmlSerializationReader.cs (11)
904
return
XmlCustomFormatter
.ToByteArrayBase64(value);
917
return
XmlCustomFormatter
.ToByteArrayHex(value);
1065
return
XmlCustomFormatter
.ToDateTime(value);
1070
return
XmlCustomFormatter
.ToDate(value);
1075
return
XmlCustomFormatter
.ToTime(value);
1080
return
XmlCustomFormatter
.ToChar(value);
1085
return
XmlCustomFormatter
.ToEnum(value, h, typeName, true);
1090
return
XmlCustomFormatter
.ToXmlName(value);
1095
return
XmlCustomFormatter
.ToXmlNCName(value);
1100
return
XmlCustomFormatter
.ToXmlNmToken(value);
1105
return
XmlCustomFormatter
.ToXmlNmTokens(value);
System\Xml\Serialization\XmlSerializationWriter.cs (16)
107
return
XmlCustomFormatter
.FromByteArrayHex(value);
112
return
XmlCustomFormatter
.FromDateTime(value);
117
return
XmlCustomFormatter
.FromDate(value);
122
return
XmlCustomFormatter
.FromTime(value);
127
return
XmlCustomFormatter
.FromChar(value);
132
return
XmlCustomFormatter
.FromEnum(value, values, ids, null);
137
return
XmlCustomFormatter
.FromEnum(value, values, ids, typeName);
142
return
XmlCustomFormatter
.FromXmlName(name);
147
return
XmlCustomFormatter
.FromXmlNCName(ncName);
152
return
XmlCustomFormatter
.FromXmlNmToken(nmToken);
157
return
XmlCustomFormatter
.FromXmlNmTokens(nmTokens);
351
XmlCustomFormatter
.WriteArrayBase64(w, (byte[])o, 0,((byte[])o).Length);
881
XmlCustomFormatter
.WriteArrayBase64(w, value, 0, value.Length);
897
XmlCustomFormatter
.WriteArrayBase64(w, value, 0, value.Length);
916
XmlCustomFormatter
.WriteArrayBase64(w, value, 0, value.Length);
1000
XmlCustomFormatter
.WriteArrayBase64(w, value, 0, value.Length);