TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Alex
NA
3
0
Sending (and then handling messages) to a server
Jan 15 2008 5:13 AM
Good morning,
Say I have various types of messages to send across the network, but obviously I can only send them as an object. How do I split where the various messages are sent when they get to the server?
I've been going around in circles, and the obvious way (in my head) to handle this is to have some sort of header (using an interface), and then do a switch depending on what's in the header, and cast the object to the specific type.
But something's telling me this is a bad way of doing it, it doesn't feel very OO. any suggestions?
Alex
Reply
Answers (
2
)
Adding Dynamic Row In GridView by Enter KeyPress in ASP.Net and C#
Closing form..