20 references to ToDateTime
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (8)
XmlSerializerInputFormatterTest.cs (8)
69
XmlConvert.
ToDateTime
(expectedDateTime, XmlDateTimeSerializationMode.Utc),
106
XmlConvert.
ToDateTime
(expectedDateTime, XmlDateTimeSerializationMode.Utc),
142
XmlConvert.
ToDateTime
(expectedDateTime, XmlDateTimeSerializationMode.Utc),
178
XmlConvert.
ToDateTime
(expectedDateTime, XmlDateTimeSerializationMode.Utc),
222
XmlConvert.
ToDateTime
(expectedDateTime, XmlDateTimeSerializationMode.Utc),
358
XmlConvert.
ToDateTime
(expectedDateTime, XmlDateTimeSerializationMode.Utc),
393
XmlConvert.
ToDateTime
(expectedDateTime, XmlDateTimeSerializationMode.Utc),
617
Assert.Equal(XmlConvert.
ToDateTime
(expectedDateTime, XmlDateTimeSerializationMode.Utc), model.SampleDate);
System.Data.Common (5)
System\Data\Common\DateTimeStorage.cs (2)
221
retValue = XmlConvert.
ToDateTime
(s, XmlDateTimeSerializationMode.Unspecified);
225
retValue = XmlConvert.
ToDateTime
(s, XmlDateTimeSerializationMode.RoundtripKind);
System\Data\Common\SQLConvert.cs (2)
579
return new SqlDateTime(XmlConvert.
ToDateTime
((string)value, XmlDateTimeSerializationMode.RoundtripKind));
632
return XmlConvert.
ToDateTime
((string)value, XmlDateTimeSerializationMode.RoundtripKind);
System\Data\SQLTypes\SQLDateTime.cs (1)
643
DateTime dt = XmlConvert.
ToDateTime
(reader.ReadElementString(), XmlDateTimeSerializationMode.RoundtripKind);
System.Private.DataContractSerialization (1)
System\Xml\XmlConverter.cs (1)
219
return XmlConvert.
ToDateTime
(value, XmlDateTimeSerializationMode.RoundtripKind);
System.Private.Xml (6)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
1211
return XmlConvert.
ToDateTime
(string.Empty, XmlDateTimeSerializationMode.RoundtripKind);
System\Xml\Core\XmlReader.cs (2)
182
return XmlConvert.
ToDateTime
(InternalReadContentAsString(), XmlDateTimeSerializationMode.RoundtripKind);
395
return XmlConvert.
ToDateTime
(string.Empty, XmlDateTimeSerializationMode.RoundtripKind);
System\Xml\Schema\Inference\Infer.cs (2)
1648
XmlConvert.
ToDateTime
(s, XmlDateTimeSerializationMode.RoundtripKind);
2365
XmlConvert.
ToDateTime
(s, XmlDateTimeSerializationMode.RoundtripKind);
System\Xml\Serialization\Xmlcustomformatter.cs (1)
382
return XmlConvert.
ToDateTime
(value, XmlDateTimeSerializationMode.RoundtripKind);