Skip to content

Commit 3e6a830

Browse files
authored
Correct documentation copied from Double
ToString(System.String,System.IFormatProvider) had xrefs to ToString methods in Double
1 parent 3dd1f56 commit 3e6a830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xml/System/Decimal.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6841,13 +6841,13 @@
68416841
<format type="text/markdown"><![CDATA[
68426842
68436843
## Remarks
6844-
The <xref:System.Double.ToString%28System.String%2CSystem.IFormatProvider%29> method formats a <xref:System.Double> value in a specified format of a specified culture. If you want to use default format or culture settings, use the other overloads of the <xref:System.Double.ToString%2A> method, as follows:
6844+
The <xref:System.Decimal.ToString%28System.String%2CSystem.IFormatProvider%29> method formats a <xref:System.Decimal> value in a specified format of a specified culture. If you want to use default format or culture settings, use the other overloads of the <xref:System.Decimal.ToString%2A> method, as follows:
68456845
68466846
|To use format|For culture|Use the overload|
68476847
|-------------------|-----------------|----------------------|
6848-
|Default ("G") format|Default (current) culture|<xref:System.Double.ToString>|
6849-
|Default ("G") format|A specific culture|<xref:System.Double.ToString%28System.IFormatProvider%29>|
6850-
|A specific format|Default (current) culture|<xref:System.Double.ToString%28System.String%29>|
6848+
|Default ("G") format|Default (current) culture|<xref:System.Decimal.ToString>|
6849+
|Default ("G") format|A specific culture|<xref:System.Decimal.ToString%28System.IFormatProvider%29>|
6850+
|A specific format|Default (current) culture|<xref:System.Decimal.ToString%28System.String%29>|
68516851
68526852
The `format` parameter can be any valid standard numeric format specifier except for D, R, and X, as well as any combination of custom numeric format specifiers. If `format` is `null` or an empty string, the return value for this instance is formatted with the general numeric format specifier ("G").
68536853

0 commit comments

Comments
 (0)