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

Skip to content

Commit 8a6e059

Browse files
authored
Merge pull request dotnet#3234 from rpetrusha/overflow-float
Noted change of behavior or Parse/TryParse
2 parents 3948c7f + 69e98c3 commit 8a6e059

File tree

7 files changed

+172
-130
lines changed

7 files changed

+172
-130
lines changed

xml/System/Decimal.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4429,7 +4429,7 @@
44294429
> [!NOTE]
44304430
> Any terminating NUL (U+0000) characters in `s` are ignored by the parsing operation, regardless of the value of the `style` argument.
44314431
4432-
A string with digits only (which corresponds to the <xref:System.Globalization.NumberStyles.None> style) always parses successfully. The remaining <xref:System.Globalization.NumberStyles> members control elements that may be but are not required to be present in the input string. The following table indicates how individual <xref:System.Globalization.NumberStyles> members affect the elements that may be present in `s`.
4432+
A string with digits only (which corresponds to the <xref:System.Globalization.NumberStyles.None> style) always parses successfully if it is in the range of the <xref:System.Decimal> type. The remaining <xref:System.Globalization.NumberStyles> members control elements that may be but are not required to be present in the input string. The following table indicates how individual <xref:System.Globalization.NumberStyles> members affect the elements that may be present in `s`.
44334433
44344434
|NumberStyles value|Elements permitted in s in addition to digits|
44354435
|------------------------|---------------------------------------------------|
@@ -4680,7 +4680,7 @@
46804680
> [!NOTE]
46814681
> Any terminating NUL (U+0000) characters in `s` are ignored by the parsing operation, regardless of the value of the `style` argument.
46824682
4683-
A string with digits only (which corresponds to the <xref:System.Globalization.NumberStyles.None> style) always parses successfully. The remaining <xref:System.Globalization.NumberStyles> members control elements that may be but are not required to be present in the input string. The following table indicates how individual <xref:System.Globalization.NumberStyles> members affect the elements that may be present in `s`.
4683+
A string with digits only (which corresponds to the <xref:System.Globalization.NumberStyles.None> style) always parses successfully if it is in the range of the <xref:System.Decimal> type. The remaining <xref:System.Globalization.NumberStyles> members control elements that may be but are not required to be present in the input string. The following table indicates how individual <xref:System.Globalization.NumberStyles> members affect the elements that may be present in `s`.
46844684
46854685
|NumberStyles value|Elements permitted in s in addition to digits|
46864686
|------------------------|---------------------------------------------------|

xml/System/Double.xml

Lines changed: 104 additions & 78 deletions
Large diffs are not rendered by default.

xml/System/Int32.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@
805805
> [!NOTE]
806806
> Any terminating NUL (U+0000) characters in `s` are ignored by the parsing operation, regardless of the value of the `style` argument.
807807
808-
A string with digits only (which corresponds to the <xref:System.Globalization.NumberStyles.None?displayProperty=nameWithType> style) always parses successfully. Most of the remaining <xref:System.Globalization.NumberStyles> members control elements that may be but are not required to be present in the input string. The following table indicates how individual <xref:System.Globalization.NumberStyles> members affect the elements that may be present in `s`.
808+
A string with digits only (which corresponds to the <xref:System.Globalization.NumberStyles.None?displayProperty=nameWithType> style) always parses successfull if it is in the range of the <xref:System.Int32> type. Most of the remaining <xref:System.Globalization.NumberStyles> members control elements that may be but are not required to be present in the input string. The following table indicates how individual <xref:System.Globalization.NumberStyles> members affect the elements that may be present in `s`.
809809
810810
|NumberStyles value|Elements permitted in s in addition to digits|
811811
|------------------------|---------------------------------------------------|

0 commit comments

Comments
 (0)