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()
1818 currencyText = $ "{ number : C} ";
1919 Console . WriteLine ( currencyText ) ;
2020
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
2223 string toStringCurrencyText = number . ToString ( "C" ) ;
23- Console . WriteLine ( $ "{ currencyText == toStringCurrencyText } : { currencyText } == { toStringCurrencyText } ") ;
24+ Console . WriteLine (
25+ $ "{ currencyText == toStringCurrencyText } : " +
26+ $ "{ currencyText } == { toStringCurrencyText } ") ;
2427
2528 // 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" ) ) ;
2731 Console . WriteLine ( toStringCurrencyText ) ;
2832
2933 // ...
You can’t perform that action at this time.
0 commit comments