Click here to Skip to main content
15,908,444 members
Home / Discussions / C#
   

C#

 
Questionstring method Pin
rzvme26-Oct-06 3:52
rzvme26-Oct-06 3:52 
AnswerRe: string method Pin
shultas26-Oct-06 4:05
shultas26-Oct-06 4:05 
GeneralRe: string method Pin
rzvme26-Oct-06 8:54
rzvme26-Oct-06 8:54 
QuestionWhich is better? (Communications between classes) Pin
Muntyness26-Oct-06 3:42
Muntyness26-Oct-06 3:42 
AnswerRe: Which is better? (Communications between classes) Pin
Guffa26-Oct-06 4:11
Guffa26-Oct-06 4:11 
AnswerRe: Which is better? (Communications between classes) Pin
ednrgc26-Oct-06 4:16
ednrgc26-Oct-06 4:16 
AnswerRe: Which is better? (Communications between classes) Pin
Pete O'Hanlon26-Oct-06 4:33
mvePete O'Hanlon26-Oct-06 4:33 
GeneralRe: Which is better? (Communications between classes) [modified] Pin
Muntyness26-Oct-06 5:17
Muntyness26-Oct-06 5:17 
Pete,

At the moment, what actually happens is something like this:

Class A, B and C are seperate mainly for UI reasons (They cover totally different areas of the project)
Class A, B, C all need to edit files. All have roughly similar requirements, so I moved all the file editing things into Class D, so I wouldnt have to copy and paste a couple of hundred lines around.

Class D is what you use to open up the GUIs for classes A, B and C.

The reason behind my question is that last night I suddenly thought that it would be better if I had a dedicated communications class, incase I needed to edit anything (e.g. add methods, change methods, etc).

Anyways enough of the background.

Two more things to ask:

1) Any thing you recommend as reading materials? Smile | :)

2) Do you see anything majorly wrong with the communications acting something like this?:
Communications Class and all other classes are instanced by a master class.

Class A calls:
Controler.talk(ID<s>,Object)

Controller class:
gets object. depending on ID does different thing to object.
e.g. converts object to String[]
sends modified object (e.g. String[]) to method in specific class (as identified by ID)
waits for response from method. (If method is not void)
Returns response as object.

--

Yeah it does mean forcing conversions from Object to whatever you need both in the communications class, and when it's returned to the original class, but it seems the best way to do it to me, rather than having a bunch of methods in the communications class that take in different sets of variables.

Edit:
Oops, accidentially made it strikethrough.

-- modified at 11:34 Thursday 26th October, 2006
GeneralRe: Which is better? (Communications between classes) Pin
Pete O'Hanlon26-Oct-06 5:21
mvePete O'Hanlon26-Oct-06 5:21 
GeneralRe: Which is better? (Communications between classes) Pin
Muntyness26-Oct-06 5:39
Muntyness26-Oct-06 5:39 
GeneralRe: Which is better? (Communications between classes) Pin
Pete O'Hanlon26-Oct-06 6:41
mvePete O'Hanlon26-Oct-06 6:41 
GeneralRe: Which is better? (Communications between classes) Pin
Muntyness26-Oct-06 7:02
Muntyness26-Oct-06 7:02 
GeneralRe: Which is better? (Communications between classes) Pin
led mike26-Oct-06 6:49
led mike26-Oct-06 6:49 
GeneralRe: Which is better? (Communications between classes) Pin
led mike26-Oct-06 5:58
led mike26-Oct-06 5:58 
GeneralRe: Which is better? (Communications between classes) Pin
Pete O'Hanlon26-Oct-06 6:39
mvePete O'Hanlon26-Oct-06 6:39 
QuestionHow to do https request and get correct Response using MSXML dll? Pin
pubududilena26-Oct-06 3:41
pubududilena26-Oct-06 3:41 
AnswerRe: How to do https request and get correct Response using MSXML dll? Pin
led mike26-Oct-06 6:18
led mike26-Oct-06 6:18 
GeneralRe: How to do https request and get correct Response using MSXML dll? Pin
pubududilena13-Nov-06 1:56
pubududilena13-Nov-06 1:56 
GeneralRe: How to do https request and get correct Response using MSXML dll? Pin
led mike13-Nov-06 7:23
led mike13-Nov-06 7:23 
QuestionAnonymous Methods Pin
mohanlon26-Oct-06 3:23
mohanlon26-Oct-06 3:23 
AnswerRe: Anonymous Methods Pin
ednrgc26-Oct-06 4:24
ednrgc26-Oct-06 4:24 
GeneralRe: Anonymous Methods Pin
mohanlon26-Oct-06 5:32
mohanlon26-Oct-06 5:32 
GeneralRe: Anonymous Methods Pin
Pete O'Hanlon26-Oct-06 6:42
mvePete O'Hanlon26-Oct-06 6:42 
GeneralRe: Anonymous Methods Pin
ednrgc26-Oct-06 6:58
ednrgc26-Oct-06 6:58 
GeneralRe: Anonymous Methods Pin
mohanlon26-Oct-06 8:37
mohanlon26-Oct-06 8:37 

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.