57 references to XmlDateTimeSerializationMode
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (18)
XmlSerializerInputFormatterTest.cs (18)
42var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 69XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 79var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 106XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 116var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 142XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 152var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 178XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 191var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 222XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 336var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 358XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 368var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 393XmlConvert.ToDateTime(expectedDateTime, 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); 617Assert.Equal(XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), model.SampleDate);
netstandard (1)
netstandard.cs (1)
2462[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlDateTimeSerializationMode))]
System.Data.Common (9)
System\Data\Common\DateTimeStorage.cs (4)
221retValue = XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.Unspecified); 225retValue = XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.RoundtripKind); 237retValue = XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.Local); 241retValue = XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.RoundtripKind);
System\Data\Common\SQLConvert.cs (4)
579return new SqlDateTime(XmlConvert.ToDateTime((string)value, XmlDateTimeSerializationMode.RoundtripKind)); 632return XmlConvert.ToDateTime((string)value, XmlDateTimeSerializationMode.RoundtripKind); 667return XmlConvert.ToString(((SqlDateTime)value).Value, XmlDateTimeSerializationMode.RoundtripKind); 713return XmlConvert.ToString((DateTime)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 (25)
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\Core\XmlWriter.cs (1)
268WriteString(XmlConvert.ToString(value, XmlDateTimeSerializationMode.RoundtripKind));
System\Xml\Schema\Inference\Infer.cs (2)
1648XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.RoundtripKind); 2365XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.RoundtripKind);
System\Xml\Serialization\Xmlcustomformatter.cs (3)
104return XmlConvert.ToString(value, XmlDateTimeSerializationMode.RoundtripKind); 116return XmlConvert.TryFormat(value, XmlDateTimeSerializationMode.RoundtripKind, destination, out charsWritten); 382return XmlConvert.ToDateTime(value, XmlDateTimeSerializationMode.RoundtripKind);
System\Xml\XmlConvert.cs (16)
702public static string ToString(DateTime value, XmlDateTimeSerializationMode dateTimeOption) 706case XmlDateTimeSerializationMode.Local: 710case XmlDateTimeSerializationMode.Utc: 714case XmlDateTimeSerializationMode.Unspecified: 718case XmlDateTimeSerializationMode.RoundtripKind: 1210public static DateTime ToDateTime(string s, XmlDateTimeSerializationMode dateTimeOption) 1217case XmlDateTimeSerializationMode.Local: 1221case XmlDateTimeSerializationMode.Utc: 1225case XmlDateTimeSerializationMode.Unspecified: 1229case XmlDateTimeSerializationMode.RoundtripKind: 1761return TryFormat(value, XmlDateTimeSerializationMode.RoundtripKind, destination, out charsWritten); 1764internal static bool TryFormat(DateTime value, XmlDateTimeSerializationMode dateTimeOption, Span<char> destination, out int charsWritten) 1768case XmlDateTimeSerializationMode.Local: 1772case XmlDateTimeSerializationMode.Utc: 1776case XmlDateTimeSerializationMode.Unspecified: 1780case XmlDateTimeSerializationMode.RoundtripKind:
System.Private.Xml.Linq (1)
System\Xml\Linq\XContainer.cs (1)
820DateTime dtValue => XmlConvert.ToString(dtValue, XmlDateTimeSerializationMode.RoundtripKind),
System.Xml (1)
System.Xml.cs (1)
197[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlDateTimeSerializationMode))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
125[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlDateTimeSerializationMode))]