Click here to Skip to main content
15,913,944 members
Home / Discussions / C#
   

C#

 
QuestionGlobal objects in line with guidelines of OOP? Pin
Zeddan25-Oct-08 7:38
Zeddan25-Oct-08 7:38 
AnswerRe: Global objects in line with guidelines of OOP? Pin
elektrowolf25-Oct-08 23:18
elektrowolf25-Oct-08 23:18 
AnswerRe: Global objects in line with guidelines of OOP? Pin
Urs Enzler26-Oct-08 6:39
Urs Enzler26-Oct-08 6:39 
I suggest using a dependecy injection container (Unity Application Block, Castle's Windsor Kernel, Spring.NET). Then you have only one single global variable, the container itself.

All other global variables will make unit testing, decoupling of components and maintenance a great bit more difficult.

Happy coding
Urs

-^-^-^-^-^-^-^-
no risk no funk

AnswerRe: Global objects in line with guidelines of OOP? Pin
Alan Balkany27-Oct-08 3:51
Alan Balkany27-Oct-08 3:51 
QuestionSorting Lists Pin
Jammer25-Oct-08 6:02
Jammer25-Oct-08 6:02 
AnswerRe: Sorting Lists Pin
Wendelius25-Oct-08 6:08
mentorWendelius25-Oct-08 6:08 
QuestionPlzzzzzzzz Help me Pin
maliaslam25-Oct-08 5:59
maliaslam25-Oct-08 5:59 
AnswerRe: Plzzzzzzzz Help me Pin
Wendelius25-Oct-08 6:10
mentorWendelius25-Oct-08 6:10 
GeneralRe: Plzzzzzzzz Help me Pin
PIEBALDconsult25-Oct-08 6:21
mvePIEBALDconsult25-Oct-08 6:21 
JokeRe: Plzzzzzzzz Help me Pin
Wendelius25-Oct-08 6:24
mentorWendelius25-Oct-08 6:24 
GeneralRe: Plzzzzzzzz Help me Pin
elektrowolf25-Oct-08 23:21
elektrowolf25-Oct-08 23:21 
GeneralRe: Plzzzzzzzz Help me Pin
PIEBALDconsult26-Oct-08 4:34
mvePIEBALDconsult26-Oct-08 4:34 
JokeRe: Plzzzzzzzz Help me Pin
nelsonpaixao26-Oct-08 13:35
nelsonpaixao26-Oct-08 13:35 
AnswerRe: Plzzzzzzzz Help me Pin
Dave Kreskowiak25-Oct-08 8:29
mveDave Kreskowiak25-Oct-08 8:29 
GeneralRe: Plzzzzzzzz Help me Pin
maliaslam25-Oct-08 20:54
maliaslam25-Oct-08 20:54 
GeneralRe: Plzzzzzzzz Help me Pin
Dave Kreskowiak26-Oct-08 3:48
mveDave Kreskowiak26-Oct-08 3:48 
JokeRe: Plzzzzzzzz Help me Pin
Mark Salsbery27-Oct-08 5:40
Mark Salsbery27-Oct-08 5:40 
GeneralRe: Plzzzzzzzz Help me Pin
Dave Kreskowiak27-Oct-08 11:04
mveDave Kreskowiak27-Oct-08 11:04 
AnswerCP Ignore Pin
leckey25-Oct-08 15:07
leckey25-Oct-08 15:07 
AnswerRe: Plzzzzzzzz Help me Pin
Pete O'Hanlon26-Oct-08 10:02
mvePete O'Hanlon26-Oct-08 10:02 
GeneralRe: Plzzzzzzzz Help me Pin
Vasudevan Deepak Kumar27-Oct-08 7:41
Vasudevan Deepak Kumar27-Oct-08 7:41 
QuestionHow to send control over mouse scroll in c# ? Pin
parinya225-Oct-08 5:55
parinya225-Oct-08 5:55 
AnswerRe: How to send control over mouse scroll in c# ? Pin
DaveyM6925-Oct-08 6:55
professionalDaveyM6925-Oct-08 6:55 
GeneralRe: How to send control over mouse scroll in c# ? Pin
parinya225-Oct-08 7:18
parinya225-Oct-08 7:18 
GeneralRe: How to send control over mouse scroll in c# ? Pin
DaveyM6925-Oct-08 9:03
professionalDaveyM6925-Oct-08 9:03 

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.