Click here to Skip to main content
15,897,226 members
Home / Discussions / C#
   

C#

 
AnswerRe: No problem.. just more of "What would you do" question.. Pin
_Erik_11-Nov-10 0:44
_Erik_11-Nov-10 0:44 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
Jacob D Dixon11-Nov-10 3:58
Jacob D Dixon11-Nov-10 3:58 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
_Erik_12-Nov-10 3:14
_Erik_12-Nov-10 3:14 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
Jacob D Dixon12-Nov-10 5:30
Jacob D Dixon12-Nov-10 5:30 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
_Erik_12-Nov-10 6:01
_Erik_12-Nov-10 6:01 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
Jacob D Dixon12-Nov-10 11:30
Jacob D Dixon12-Nov-10 11:30 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
Jacob D Dixon14-Nov-10 14:23
Jacob D Dixon14-Nov-10 14:23 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
_Erik_15-Nov-10 3:33
_Erik_15-Nov-10 3:33 
No, sorry. Actually I thought about that possibility, but after considering what should be included I noticed it should be too large: it should cover several OOD principles and patterns and a huge application of multitier alchitecture, too large as I said and unfortunately I do not have so much time. Anyway, the success of these designs relies on a good abstraction, and I did write an article which intensely uses abstraction and, though it has nothing to do with client-server communication, maybe it can give you some clues in order to get a better abstraction for your application. Here is the link[^].

In the case you describe, for example, the client should send an abstraction of the custom object, the server should read this abstraction and call always the same method on this abstract object to insert the data. How to send an abstraction of a custom object? Well, design an interface and wrap your custom object within a class which implements this interface. This way your server only needs to look at the interface and invoke its methods, so it can work for any custom object (present or future) if it follows the abstraction rules. It is really hard to explain this here: there are a lot of things involved but, as I said before, the key is a good abstraction.
QuestionMonitor the phone state Pin
hoi110-Nov-10 10:39
hoi110-Nov-10 10:39 
Questionsending arguments to "Save As" Dialog box Pin
igalep13210-Nov-10 4:31
igalep13210-Nov-10 4:31 
AnswerRe: sending arguments to "Save As" Dialog box Pin
musefan10-Nov-10 5:56
musefan10-Nov-10 5:56 
AnswerRe: sending arguments to "Save As" Dialog box Pin
Richard MacCutchan10-Nov-10 6:19
mveRichard MacCutchan10-Nov-10 6:19 
GeneralRe: sending arguments to "Save As" Dialog box Pin
igalep13210-Nov-10 10:09
igalep13210-Nov-10 10:09 
GeneralRe: sending arguments to "Save As" Dialog box Pin
Richard MacCutchan10-Nov-10 22:36
mveRichard MacCutchan10-Nov-10 22:36 
GeneralRe: sending arguments to "Save As" Dialog box Pin
igalep13210-Nov-10 22:49
igalep13210-Nov-10 22:49 
GeneralRe: sending arguments to "Save As" Dialog box Pin
Richard MacCutchan11-Nov-10 1:19
mveRichard MacCutchan11-Nov-10 1:19 
GeneralRe: sending arguments to "Save As" Dialog box Pin
igalep13211-Nov-10 4:31
igalep13211-Nov-10 4:31 
GeneralRe: sending arguments to "Save As" Dialog box Pin
Richard MacCutchan11-Nov-10 5:07
mveRichard MacCutchan11-Nov-10 5:07 
AnswerRe: sending arguments to "Save As" Dialog box Pin
Luc Pattyn10-Nov-10 10:24
sitebuilderLuc Pattyn10-Nov-10 10:24 
QuestionC# code to encrypt color image Pin
maheshwari.vetri10-Nov-10 3:19
maheshwari.vetri10-Nov-10 3:19 
GeneralRe: C# code to encrypt color image Pin
musefan10-Nov-10 3:27
musefan10-Nov-10 3:27 
AnswerRe: C# code to encrypt color image Pin
Luc Pattyn10-Nov-10 3:33
sitebuilderLuc Pattyn10-Nov-10 3:33 
AnswerRe: C# code to encrypt color image Pin
Chris Trelawny-Ross11-Nov-10 12:52
Chris Trelawny-Ross11-Nov-10 12:52 
QuestionCreate an SQL DB file on demand Pin
musefan10-Nov-10 3:10
musefan10-Nov-10 3:10 
AnswerRe: Create an SQL DB file on demand [modified] Pin
phil.o10-Nov-10 4:24
professionalphil.o10-Nov-10 4:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.