File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
csharp/VS_Snippets_CLR_System/system.Decimal.Parse/CS
visualbasic/VS_Snippets_CLR_System/system.Decimal.Parse/VB Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ private static void CallParseWithStylesAndProvider()
118
118
CultureInfo provider ;
119
119
120
120
// Parse string using " " as the thousands separator
121
- // and ". " as the decimal separator.
121
+ // and ", " as the decimal separator for fr-FR culture .
122
122
value = "892 694,12" ;
123
123
style = NumberStyles . AllowDecimalPoint | NumberStyles . AllowThousands ;
124
124
provider = new CultureInfo ( "fr-FR" ) ;
@@ -141,7 +141,7 @@ private static void CallParseWithStylesAndProvider()
141
141
// Unable to parse '892 694,12'.
142
142
143
143
// Parse string using "$" as the currency symbol for en-GB and
144
- // en-us cultures.
144
+ // en-US cultures.
145
145
value = "$6,032.51" ;
146
146
style = NumberStyles . Number | NumberStyles . AllowCurrencySymbol ;
147
147
provider = new CultureInfo ( "en-GB" ) ;
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ Module modMain
107
107
Dim provider As CultureInfo
108
108
109
109
' Parse string using " " as the thousands separator
110
- ' and ". " as the decimal separator.
110
+ ' and ", " as the decimal separator for fr-FR culture.
111
111
value = "892 694,12"
112
112
style = NumberStyles.AllowDecimalPoint Or NumberStyles.AllowThousands
113
113
provider = New CultureInfo( "fr-FR" )
@@ -127,7 +127,7 @@ Module modMain
127
127
' Unable to parse '892 694,12'.
128
128
129
129
' Parse string using "$" as the currency symbol for en-GB and
130
- ' en-us cultures.
130
+ ' en-US cultures.
131
131
value = "$6,032.51"
132
132
style = NumberStyles.Number Or NumberStyles.AllowCurrencySymbol
133
133
provider = New CultureInfo( "en-GB" )
You can’t perform that action at this time.
0 commit comments