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