I am implementing the command pattern in VB.NET, where the commands have
been serialised. That is, I have several classes that all inherit from my
base Command class, that implements ICommand (standard stuff). The commands,
however, are deserialised at runtime, so the idea of passing a receiver in
the constructor does not work in this case.
In addition, I am implementing the MacroCommand extension, and each command
in a macro could require a different receiver.
Does anyone have an thoughts, or example of how this can be implemented,
ideally in VB.NET, but otherwise in any language?
TIA
Charles
been serialised. That is, I have several classes that all inherit from my
base Command class, that implements ICommand (standard stuff). The commands,
however, are deserialised at runtime, so the idea of passing a receiver in
the constructor does not work in this case.
In addition, I am implementing the MacroCommand extension, and each command
in a macro could require a different receiver.
Does anyone have an thoughts, or example of how this can be implemented,
ideally in VB.NET, but otherwise in any language?
TIA
Charles
Comment