Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d72e720

Browse files
committed
Fix incorrect exception text for DateTime.TryParseExact format arrays
1 parent 0ea9698 commit d72e720

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

xml/System/DateTime.xml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10012,11 +10012,7 @@ The following example illustrates the <xref:System.DateTime.TryParse%28System.St
1001210012
<returns>
1001310013
<see langword="true" /> if <paramref name="s" /> was converted successfully; otherwise, <see langword="false" />.</returns>
1001410014
<remarks>To be added.</remarks>
10015-
<exception cref="T:System.FormatException">The length of <paramref name="format" /> is 1, and it is not one of the format specifier characters defined for <see cref="T:System.Globalization.DateTimeFormatInfo" />.
10016-
10017-
-or-
10018-
10019-
<paramref name="format" /> does not contain a valid custom format pattern.</exception>
10015+
<exception cref="T:System.FormatException">The length of an element in <paramref name="formats" /> is 1, and it is not one of the format specifier characters defined for <see cref="T:System.Globalization.DateTimeFormatInfo" />.</exception>
1002010016
<exception cref="T:System.ArgumentException">
1002110017
<paramref name="style" /> is not a valid <see cref="T:System.Globalization.DateTimeStyles" /> value.
1002210018

@@ -10296,11 +10292,7 @@ The following example illustrates the <xref:System.DateTime.TryParse%28System.St
1029610292

1029710293
]]></format>
1029810294
</remarks>
10299-
<exception cref="T:System.FormatException">The length of <paramref name="format" /> is 1, and it is not one of the format specifier characters defined for <see cref="T:System.Globalization.DateTimeFormatInfo" />.
10300-
10301-
-or-
10302-
10303-
<paramref name="format" /> does not contain a valid custom format pattern.</exception>
10295+
<exception cref="T:System.FormatException">The length of an element in <paramref name="formats" /> is 1, and it is not one of the format specifier characters defined for <see cref="T:System.Globalization.DateTimeFormatInfo" />.</exception>
1030410296
<exception cref="T:System.ArgumentException">
1030510297
<paramref name="style" /> is not a valid <see cref="T:System.Globalization.DateTimeStyles" /> value.
1030610298

0 commit comments

Comments
 (0)