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