Click here to Skip to main content
15,891,943 members
Home / Discussions / C#
   

C#

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

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.