57 references to XmlDateTimeSerializationMode
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (18)
XmlSerializerInputFormatterTest.cs (18)
42
var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow,
XmlDateTimeSerializationMode
.Utc);
69
XmlConvert.ToDateTime(expectedDateTime,
XmlDateTimeSerializationMode
.Utc),
79
var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow,
XmlDateTimeSerializationMode
.Utc);
106
XmlConvert.ToDateTime(expectedDateTime,
XmlDateTimeSerializationMode
.Utc),
116
var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow,
XmlDateTimeSerializationMode
.Utc);
142
XmlConvert.ToDateTime(expectedDateTime,
XmlDateTimeSerializationMode
.Utc),
152
var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow,
XmlDateTimeSerializationMode
.Utc);
178
XmlConvert.ToDateTime(expectedDateTime,
XmlDateTimeSerializationMode
.Utc),
191
var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow,
XmlDateTimeSerializationMode
.Utc);
222
XmlConvert.ToDateTime(expectedDateTime,
XmlDateTimeSerializationMode
.Utc),
336
var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow,
XmlDateTimeSerializationMode
.Utc);
358
XmlConvert.ToDateTime(expectedDateTime,
XmlDateTimeSerializationMode
.Utc),
368
var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow,
XmlDateTimeSerializationMode
.Utc);
393
XmlConvert.ToDateTime(expectedDateTime,
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);
617
Assert.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)
221
retValue = XmlConvert.ToDateTime(s,
XmlDateTimeSerializationMode
.Unspecified);
225
retValue = XmlConvert.ToDateTime(s,
XmlDateTimeSerializationMode
.RoundtripKind);
237
retValue = XmlConvert.ToString((DateTime)value,
XmlDateTimeSerializationMode
.Local);
241
retValue = XmlConvert.ToString((DateTime)value,
XmlDateTimeSerializationMode
.RoundtripKind);
System\Data\Common\SQLConvert.cs (4)
579
return new SqlDateTime(XmlConvert.ToDateTime((string)value,
XmlDateTimeSerializationMode
.RoundtripKind));
632
return XmlConvert.ToDateTime((string)value,
XmlDateTimeSerializationMode
.RoundtripKind);
667
return XmlConvert.ToString(((SqlDateTime)value).Value,
XmlDateTimeSerializationMode
.RoundtripKind);
713
return XmlConvert.ToString((DateTime)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 (25)
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\Core\XmlWriter.cs (1)
268
WriteString(XmlConvert.ToString(value,
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 (3)
104
return XmlConvert.ToString(value,
XmlDateTimeSerializationMode
.RoundtripKind);
116
return XmlConvert.TryFormat(value,
XmlDateTimeSerializationMode
.RoundtripKind, destination, out charsWritten);
382
return XmlConvert.ToDateTime(value,
XmlDateTimeSerializationMode
.RoundtripKind);
System\Xml\XmlConvert.cs (16)
702
public static string ToString(DateTime value,
XmlDateTimeSerializationMode
dateTimeOption)
706
case
XmlDateTimeSerializationMode
.Local:
710
case
XmlDateTimeSerializationMode
.Utc:
714
case
XmlDateTimeSerializationMode
.Unspecified:
718
case
XmlDateTimeSerializationMode
.RoundtripKind:
1210
public static DateTime ToDateTime(string s,
XmlDateTimeSerializationMode
dateTimeOption)
1217
case
XmlDateTimeSerializationMode
.Local:
1221
case
XmlDateTimeSerializationMode
.Utc:
1225
case
XmlDateTimeSerializationMode
.Unspecified:
1229
case
XmlDateTimeSerializationMode
.RoundtripKind:
1761
return TryFormat(value,
XmlDateTimeSerializationMode
.RoundtripKind, destination, out charsWritten);
1764
internal static bool TryFormat(DateTime value,
XmlDateTimeSerializationMode
dateTimeOption, Span<char> destination, out int charsWritten)
1768
case
XmlDateTimeSerializationMode
.Local:
1772
case
XmlDateTimeSerializationMode
.Utc:
1776
case
XmlDateTimeSerializationMode
.Unspecified:
1780
case
XmlDateTimeSerializationMode
.RoundtripKind:
System.Private.Xml.Linq (1)
System\Xml\Linq\XContainer.cs (1)
820
DateTime 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
))]