By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,369 Members | 1,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,369 IT Pros & Developers. It's quick & easy.

Delegates and Events or Command Patter

P: n/a
Reg
Hello, I have a situation where a text based protocol comes to my component
to be handled.

Protocol has differnt commands and they have different arguments.

The question is that which is in C# world's way to handle different command
a J2EE style Cpmmand Pattern Design Pattern or C#'s Events and Delegates?

Any opinions of that? If Events and Delegates are proper how should I deal
with differents of commands into Delegates and Events? Also return values
may vary depending on command.

thanks.
Sep 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I would consider delegates and events the DotNet "built in" implementation
of the Observer Pattern, not the Command Pattern.

check out dofactory.com and their "free design patterns" section as well,
for C# specific code.


"Reg" <re*@re.dot.netwrote in message
news:fb**********@nyytiset.pp.htv.fi...
Hello, I have a situation where a text based protocol comes to my
component to be handled.

Protocol has differnt commands and they have different arguments.

The question is that which is in C# world's way to handle different
command a J2EE style Cpmmand Pattern Design Pattern or C#'s Events and
Delegates?

Any opinions of that? If Events and Delegates are proper how should I deal
with differents of commands into Delegates and Events? Also return values
may vary depending on command.

thanks.


Sep 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.