File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,16 @@ public static void Main()
18
18
currencyText = $ "{ number : C} ";
19
19
Console . WriteLine ( currencyText ) ;
20
20
21
- // Prove that string interpolation and the ToString method produce equivalent results with format specifiers
21
+ // Prove that string interpolation and the ToString method
22
+ // produce equivalent results with format specifiers
22
23
string toStringCurrencyText = number . ToString ( "C" ) ;
23
- Console . WriteLine ( $ "{ currencyText == toStringCurrencyText } : { currencyText } == { toStringCurrencyText } ") ;
24
+ Console . WriteLine (
25
+ $ "{ currencyText == toStringCurrencyText } : " +
26
+ $ "{ currencyText } == { toStringCurrencyText } ") ;
24
27
25
28
// el-GR represents the Greek locale code
26
- toStringCurrencyText = number . ToString ( "C" , CultureInfo . GetCultureInfo ( "el-GR" ) ) ;
29
+ toStringCurrencyText = number . ToString ( "C" ,
30
+ CultureInfo . GetCultureInfo ( "el-GR" ) ) ;
27
31
Console . WriteLine ( toStringCurrencyText ) ;
28
32
29
33
// ...
You can’t perform that action at this time.
0 commit comments