188 string output =
"<NO COMMAND>";
void(* no_parameter_operation)(Command_TextObject *source)
Alias for a function type representing an operation applied to a Command_TextObject that uses no addi...
void(* two_parameter_operation)(Command_TextObject *source, const char *argument1, const char *argument2)
Alias for a function type representing an operation applied to a Command_TextObject using two paramet...
Container for a string. Need to use a class that allows the text to be changed while the container (t...
Command_TextObject(string text)
Constructs a text object with an initial string.
void Reset()
Resets the TextObject to the starting string.
override string ToString()
Converts the TextObject to a string.
string Text
Gets or sets the text in this TextObject.
Represents an operation that can be applied to a TextObject. This class can handle two kinds of opera...
void Execute()
Execute the command on the TextObject.
Command(Command_TextObject source, string commandName, no_parameter_operation operation)
Constructor for a command that applies an operation to a TextObject but does not take any additional ...
Command_TextObject _receiver
override string ToString()
Convert this command to a string representation.
Command(Command_TextObject source, string commandName, two_parameter_operation operation, string argument1, string argument2)
Constructor for a command that applies an operation to a TextObject, where the operation takes two pa...
two_parameter_operation? _two_parameter_operation
no_parameter_operation? _no_parameter_operation
The namespace containing all Design Pattern Examples implemented in C#.