What is the need for Command Pattern in C#?While implementing
Chain of Responsibility pattern, the request from the sender will be sent
to a chain of receivers and one of them will handle it. But in command pattern, the request from the sender will be sent to a particular object only. Every receiver object are internally command objects. Each of these command objects contain Execute method which is called to trigger the receiver to perform an action. Here is a sample snippet of command object: class commandClass
{
FREE
Subscription
Subscribe
to our mailing list and receive new articles Note
: We never rent, trade, or sell my email lists to Visit
.NET Programming Tutorial Homepage ______________________________________________________ |