17 references to ToString
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (10)
XmlSerializerInputFormatterTest.cs (10)
42
var expectedDateTime = XmlConvert.
ToString
(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc);
79
var expectedDateTime = XmlConvert.
ToString
(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc);
116
var expectedDateTime = XmlConvert.
ToString
(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc);
152
var expectedDateTime = XmlConvert.
ToString
(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc);
191
var expectedDateTime = XmlConvert.
ToString
(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc);
336
var expectedDateTime = XmlConvert.
ToString
(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc);
368
var expectedDateTime = XmlConvert.
ToString
(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc);
430
"<SampleDate>" + XmlConvert.
ToString
(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc)
451
"<SampleDate>" + XmlConvert.
ToString
(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc)
586
var expectedDateTime = XmlConvert.
ToString
(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc);
System.Data.Common (4)
System\Data\Common\DateTimeStorage.cs (2)
237
retValue = XmlConvert.
ToString
((DateTime)value, XmlDateTimeSerializationMode.Local);
241
retValue = XmlConvert.
ToString
((DateTime)value, XmlDateTimeSerializationMode.RoundtripKind);
System\Data\Common\SQLConvert.cs (2)
667
return XmlConvert.
ToString
(((SqlDateTime)value).Value, XmlDateTimeSerializationMode.RoundtripKind);
713
return XmlConvert.
ToString
((DateTime)value, XmlDateTimeSerializationMode.RoundtripKind);
System.Private.Xml (2)
System\Xml\Core\XmlWriter.cs (1)
268
WriteString(XmlConvert.
ToString
(value, XmlDateTimeSerializationMode.RoundtripKind));
System\Xml\Serialization\Xmlcustomformatter.cs (1)
104
return XmlConvert.
ToString
(value, XmlDateTimeSerializationMode.RoundtripKind);
System.Private.Xml.Linq (1)
System\Xml\Linq\XContainer.cs (1)
820
DateTime dtValue => XmlConvert.
ToString
(dtValue, XmlDateTimeSerializationMode.RoundtripKind),