Skip to content

Commit 7a841bc

Browse files
For obsolote method alternate suggesting XmlDateTimeSerializationMode (#3936)
* For obsolote method alternate suggesting XmlDateTimeSerializationMode can be used and exact replacement suggestion * Update xml/System.Xml/XmlConvert.xml Co-Authored-By: Carlos Sanchez Lopez <[email protected]> * Add paragrapgh Co-authored-by: Carlos Sanchez Lopez <[email protected]>
1 parent f4193e3 commit 7a841bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xml/System.Xml/XmlConvert.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,7 @@ writer.WriteElementString(XmlConvert.EncodeName("Order Detail"),"My order");
18441844
18451845
> [!NOTE]
18461846
> The <xref:System.Xml.XmlConvert.ToString%28System.DateTime%29?displayProperty=nameWithType> method is obsolete in the 2.0 version of the .NET Framework and has been replaced with the <xref:System.Xml.XmlConvert.ToString%28System.DateTime%2CSystem.Xml.XmlDateTimeSerializationMode%29?displayProperty=nameWithType> method.
1847+
> The suggested mode is <xref:System.Xml.XmlDateTimeSerializationMode.RoundtripKind>. If an exact match is expected, please use <xref:System.Xml.XmlConvert.ToString%28System.DateTime%2CSystem.String%29?displayProperty=nameWithType> with the format string `yyyy-MM-ddTHH:mm:ss.fffffffzzzzzz`.
18471848
18481849
]]></format>
18491850
</remarks>

0 commit comments

Comments
 (0)