You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
update interactive samples in string.format (#2553)
* update interactive samples in string.format
contributes to #2539
Relies on dotnet/samples#953
When possible, update the snippets to work as included snippets.
Otherwise, turn off the interactive samples on those samples.
* turn off formatting on currency example
Besides formatting, you can also control alignment and spacing.
@@ -5205,7 +5205,7 @@ Depending on Why you want to call the `Copy` method, there are a number of alter
5205
5205
The following example defines a 6-character field to hold the string "Year" and some year strings, as well as an 15-character field to hold the string "Population" and some population data. Note that the characters are right-aligned in the field.
@@ -5342,7 +5342,7 @@ Depending on Why you want to call the `Copy` method, there are a number of alter
5342
5342
- If the object to be formatted is an unsigned byte value that is to be formatted by using the "R" standard format string, the custom formatter formats the numeric value as a Roman numeral.
A comparison of the following two code examples illustrates the superiority of interpolated strings over string concatenation and calls to composite formatting methods. The use of multiple string concatenation operations in the following example produces verbose and hard-to-read code.
In contrast, the use of interpolated strings in the following example produce much clearer, more concise code than the string concatenation statement and the call to the <xref:System.String.Format%2A> method in the previous example.
0 commit comments