38 Console.WriteLine(
"Null Object Exercise");
44 string moveString =
"ur#ld!lr";
45 Console.WriteLine(
" Showing the move commands:");
48 Console.WriteLine(
" Executing the move commands:");
49 Console.Write(
" {0} -> ", moveString);
52 Console.WriteLine(
" Done.");
Represents the processor that translates the move list into a list of MoveCommand objects then either...
void ShowMoveList(string moveList)
Parse and display the given list of move commands, where each command is represents by a single chara...
void ExecuteMoveList(string moveList)
Parse and execute the given list of move commands, where each command is represents by a single chara...
Example of using the Null Object Pattern in C#.
void Run()
Executes the example for the Null Object Pattern in C#.
The namespace containing all Design Pattern Examples implemented in C#.