File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -41,4 +41,5 @@ Zhou Jing | 22 | 1065 - 1066 | Changed 'Thread' to 'Task' and "Application exiti
4141Zhou Jing | 4 | 161 | Fix ` input < 9 ` to ` input < 0 ` in Listing 4.24
4242Zhou Jing | 4 | 119 | Show inconsistent size multi-dimensional array in listing 3.16
4343Zhou Jing | 3 | 114 | Replace ` second ` with ` third ` in "// Retrieve third item from the end (Python)"
44- Tyler Woody | 13 | 702 | Remove the ` ! ` negation in ` string.IsNullOrWhiteSpace(input) ` in the while loop to properly allow looping
44+ Tyler Woody | 13 | 702 | Remove the ` ! ` negation in ` string.IsNullOrWhiteSpace(input) ` in the while loop to properly allow looping
45+ Benjamin Michaelis | 19 | 948-949 | Add a ` ( ` before the ` next + 1 ` to complete the parenthesis.
Original file line number Diff line number Diff line change 1- namespace AddisonWesley . Michaelis . EssentialCSharp . Chapter19 . Listing19_02 ;
1+ namespace AddisonWesley . Michaelis . EssentialCSharp . Chapter19 . Listing19_02 ;
22
33#region INCLUDE
44using System ;
55using System . Threading . Tasks ;
6- using AddisonWesley . Michaelis . EssentialCSharp . Shared ;
6+ using AddisonWesley . Michaelis . EssentialCSharp . Shared ; // EXCLUDE
77
88public class Program
99{
@@ -17,10 +17,10 @@ public static void Main()
1717 #endregion HIGHLIGHT
1818 ( ) => PiCalculator . Calculate ( 100 ) ) ;
1919
20- foreach (
20+ foreach (
2121 char busySymbol in Utility . BusySymbols ( ) )
2222 {
23- if ( task . IsCompleted )
23+ if ( task . IsCompleted )
2424 {
2525 Console . Write ( '\b ' ) ;
2626 break ;
@@ -55,15 +55,15 @@ public static IEnumerable<char> BusySymbols()
5555 {
5656 string busySymbols = @"-\|/-\|/";
5757 int next = 0;
58- while(true)
58+ while (true)
5959 {
6060 yield return busySymbols[next];
61- next = next + 1) % busySymbols.Length;
61+ next = ( next + 1) % busySymbols.Length;
6262 yield return '\b';
6363 }
6464 }
6565}
66- #region EXCLUDE
66+ #region EXCLUDE
6767*/
6868#endregion EXCLUDE
6969#endregion INCLUDE
You can’t perform that action at this time.
0 commit comments