Link to home
Start Free TrialLog in
Avatar of CipherIS
CipherISFlag for United States of America

asked on

C# Write a class checking for commands

I need to write a class that will receive commands (up, down, left, right).  I will also be receiving the object which needs to perform the commands.  When the command is received a process will be performed.

I was originally writing the class to expose the Up, Down, Left, Right.  

Can anyone provide the outline of the class?  I saw a DoFactory pattern was not sure if I should use this or how.

http://www.dofactory.com/net/command-design-pattern

Thanks
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Is the process always the same, or will specific code be needed for each object?
ASKER CERTIFIED SOLUTION
Avatar of Jeevan Bordoloi
Jeevan Bordoloi
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial