Click here to Skip to main content
15,884,099 members
Home / Discussions / C#
   

C#

 
QuestionHow do you create 2 random values [modified] Pin
Nathan Revka13-Jul-09 15:55
Nathan Revka13-Jul-09 15:55 
AnswerRe: How do you create 2 random values Pin
mikanu13-Jul-09 16:00
mikanu13-Jul-09 16:00 
AnswerRe: How do you create 2 random values Pin
Christian Graus13-Jul-09 16:30
protectorChristian Graus13-Jul-09 16:30 
AnswerRe: How do you create 2 random values Pin
PIEBALDconsult13-Jul-09 17:30
mvePIEBALDconsult13-Jul-09 17:30 
QuestionIs there any way to monitor the incoming ping requests? [modified] Pin
Beyondard13-Jul-09 14:52
Beyondard13-Jul-09 14:52 
AnswerRe: Is there any way to monitor the incoming ping requests? Pin
Super Lloyd13-Jul-09 17:22
Super Lloyd13-Jul-09 17:22 
QuestionUse of statics and singletons Pin
saxisa13-Jul-09 12:04
saxisa13-Jul-09 12:04 
AnswerRe: Use of statics and singletons Pin
Christian Graus13-Jul-09 12:13
protectorChristian Graus13-Jul-09 12:13 
saxisa wrote:
Is there a good reason to have so many statics?


It's just an idiom. I prefer to write static classes, but a class with a static Instance property works just as well. What is the difference ? If a class does not have state, then static makes sense to me.

The big classes are another thing.

saxisa wrote:
How can I refactor or manage this code?


If you want to seperate in to smaller files, then you need to use partial classes. If you want to create smaller classes, it's up to you to decide how to break one class in to many.

saxisa wrote:
There are 180,000 lines of code, and only 2 namespaces encompasing all of it. Shouldn't namespaces be used similar to packages in java?


Namespaces work in a similar way to C++, but dumbed down a little, like most of C#. I like to break things up in to folders when I create a project, and inherit namespaces from there, but I don't see anything inherently wrong with having less namespaces, so long as nothing clashes.

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

GeneralRe: Use of statics and singletons Pin
N a v a n e e t h13-Jul-09 18:02
N a v a n e e t h13-Jul-09 18:02 
AnswerRe: Use of statics and singletons Pin
Luc Pattyn13-Jul-09 12:44
sitebuilderLuc Pattyn13-Jul-09 12:44 
AnswerRe: Use of statics and singletons Pin
PIEBALDconsult13-Jul-09 13:23
mvePIEBALDconsult13-Jul-09 13:23 
Questiontoolbar + menu + task handler best practice Pin
swjam13-Jul-09 11:59
swjam13-Jul-09 11:59 
AnswerRe: toolbar + menu + task handler best practice Pin
Luc Pattyn13-Jul-09 12:47
sitebuilderLuc Pattyn13-Jul-09 12:47 
AnswerRe: toolbar + menu + task handler best practice Pin
Luc Pattyn13-Jul-09 13:27
sitebuilderLuc Pattyn13-Jul-09 13:27 
QuestionHowto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 11:34
NewJavaBean13-Jul-09 11:34 
AnswerRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 11:54
sitebuilderLuc Pattyn13-Jul-09 11:54 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 12:20
NewJavaBean13-Jul-09 12:20 
GeneralRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 12:34
sitebuilderLuc Pattyn13-Jul-09 12:34 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 12:42
NewJavaBean13-Jul-09 12:42 
GeneralRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 12:49
sitebuilderLuc Pattyn13-Jul-09 12:49 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 13:03
NewJavaBean13-Jul-09 13:03 
GeneralRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 13:24
sitebuilderLuc Pattyn13-Jul-09 13:24 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 14:53
NewJavaBean13-Jul-09 14:53 
AnswerRe: Howto write text into a picturebox on runtime Pin
Christian Graus13-Jul-09 14:25
protectorChristian Graus13-Jul-09 14:25 
QuestionPathGradientBrush and irregular shapes Pin
JimLaVine13-Jul-09 10:54
JimLaVine13-Jul-09 10:54 

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.