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

C#

 
QuestionHow to Extract/Search Office Document using Indexing Services. Pin
alisolution13-Jul-09 18:10
alisolution13-Jul-09 18:10 
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 
I have inherited a load of code and I am seeing things that I find troubling but Im not sure how serious they are. Im coming from years of experience with C++ and java, but Im relatively new to C#.

Some troubling things....
- One class is 5500 lines alone, another 4000. These are STATIC classes! I have never seen so many statics in one codebase before. Classes, methods, variables, etc. Lots of classes like this. My philosophy has been to prefer instantiable singletons over statics unless it is a small lightweight utility class. Is there a good reason to have so many statics?

- I have classes with over 20000 lines of code in ONE class. Not static thank god but still. There are probably about 15 classes over 10000 lines each. How can I refactor or manage this code? Lots of cut and paste obviously.

- 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? Each package helps to break down the code base into functional groups, right? Or is a namespace in C# different?

These seem like reasons to be concerned, if not run out the door right away... thoughts?
AnswerRe: Use of statics and singletons Pin
Christian Graus13-Jul-09 12:13
protectorChristian Graus13-Jul-09 12:13 
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 

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.