The Command_TextObject and Command classes as used in the Command pattern. More...
Go to the source code of this file.
Classes | |
class | Command_TextObject |
Container for a string. Need to use a class that allows the text to be changed while the container (this class) remains constant. This way, operations can be applied to the text and the container's contents change but not the container (strings are immutable in C#; this dances around that problem). More... | |
class | Command |
Represents an operation that can be applied to a TextObject. This class can handle two kinds of operations, one that takes no additional parameters and one that takes two additional string parameters. More... | |
Namespaces | |
namespace | DesignPatternExamples_csharp |
The namespace containing all Design Pattern Examples implemented in C#. | |
Functions | |
delegate void | two_parameter_operation (Command_TextObject source, string argument1, string argument2) |
Delegate representing an operation applied to a TextObject using two parameters. | |
delegate void | no_parameter_operation (Command_TextObject source) |
Delegate representing an operation applied to a TextObject that uses no additional arguments. | |
The Command_TextObject and Command classes as used in the Command pattern.
Definition in file Command.cs.