Click here to Skip to main content
15,914,447 members
Home / Discussions / C#
   

C#

 
QuestionFile is copying Pin
C-Scharbe26-Oct-06 4:20
C-Scharbe26-Oct-06 4:20 
AnswerRe: File is copying Pin
Rob Philpott26-Oct-06 4:34
Rob Philpott26-Oct-06 4:34 
GeneralRe: File is copying Pin
C-Scharbe26-Oct-06 4:40
C-Scharbe26-Oct-06 4:40 
GeneralRe: File is copying Pin
The Man from U.N.C.L.E.26-Oct-06 6:38
The Man from U.N.C.L.E.26-Oct-06 6:38 
GeneralRe: File is copying Pin
Aby Thomas Varghese26-Oct-06 8:22
Aby Thomas Varghese26-Oct-06 8:22 
GeneralRe: File is copying Pin
C-Scharbe26-Oct-06 20:16
C-Scharbe26-Oct-06 20:16 
QuestionCharacter "space" in a textbox -- same space used for upper and lower case? Pin
shultas26-Oct-06 3:53
shultas26-Oct-06 3:53 
AnswerRe: Character "space" in a textbox -- same space used for upper and lower case? Pin
shultas26-Oct-06 3:54
shultas26-Oct-06 3:54 
GeneralRe: Character "space" in a textbox -- same space used for upper and lower case? Pin
Muntyness26-Oct-06 4:06
Muntyness26-Oct-06 4:06 
GeneralRe: Character "space" in a textbox -- same space used for upper and lower case? Pin
shultas26-Oct-06 4:11
shultas26-Oct-06 4:11 
GeneralRe: Character "space" in a textbox -- same space used for upper and lower case? Pin
Pete O'Hanlon26-Oct-06 4:22
mvePete O'Hanlon26-Oct-06 4:22 
GeneralRe: Character "space" in a textbox -- same space used for upper and lower case? Pin
Eric Dahlvang26-Oct-06 5:36
Eric Dahlvang26-Oct-06 5:36 
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 
This question is more about programming methedology than anything else.
The question is simpily which is better out of the following programming methods:

This is a C# project.
There are five different classes in the project.

There are 2 classes that that need to be used by other classes. There may be more classes used by others in the future.

Communications method 1:

Any class that needs to use another class, simpilly calls methods from the other class. The class methods are called from are passed into the first class when it is instanced.
e.g.
Class A = class that writes to files.
Class B = class that needs to use files.
so when creating class B
private B beta = new B(A);

Communications method 2:
There is an overall Communications class.
Every class that needs to call upon methods in another class is required to use the comms class to do so.
e.g.
Class A = class that writes to files.
Class B = class that needs to use files.
Class C = the communications class.
so while in class B,
c.comms(<class to="" talk="" id="">,<items passed="" in="">);

Which would you use?
Or would you use something else?

(If this is the wrong place, feel free to tell me)

Munty
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 
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 

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.