Click here to Skip to main content
15,889,840 members
Home / Discussions / C#
   

C#

 
AnswerRe: WMI with service application Pin
Garth J Lancaster31-Jul-13 14:24
professionalGarth J Lancaster31-Jul-13 14:24 
AnswerRe: WMI with service application Pin
Abhinav S31-Jul-13 19:47
Abhinav S31-Jul-13 19:47 
AnswerRe: WMI with service application Pin
Bernhard Hiller31-Jul-13 21:05
Bernhard Hiller31-Jul-13 21:05 
QuestionHow to get window z order using GetTopMostWindow api Pin
bunge-bunge31-Jul-13 7:49
bunge-bunge31-Jul-13 7:49 
AnswerRe: How to get window z order using GetTopMostWindow api Pin
Eddy Vluggen31-Jul-13 8:49
professionalEddy Vluggen31-Jul-13 8:49 
QuestionWhat do you think this is about? Pin
Jasmine250131-Jul-13 7:22
Jasmine250131-Jul-13 7:22 
AnswerRe: What do you think this is about? Pin
Eddy Vluggen31-Jul-13 8:46
professionalEddy Vluggen31-Jul-13 8:46 
GeneralRe: What do you think this is about? Pin
Jasmine250131-Jul-13 9:06
Jasmine250131-Jul-13 9:06 
I don't see the point in having an Enum that only defines one value. What possible purpose could that have? I can make it private and the app still builds - nobody is using it, and I posted all the code for the class, it's not using it. My concern is not about the unused code though, it's about and Enum with only one value. How do you think that might be used? It can only ever have one value, and it can't be null. I don't see the point. I was kind of wondering if it's done for some reason I've never heard of - a lot of this codebase is copied straight from the MSDN.

I agree that sometimes a named class that doesn't extend the "system" class makes sense. However, I don't have any issues with using ArrayList, if that's what you need. It is a waste of code and a useless increase in complexity - I don't need my own special ArrayList class, the system one is fine. I agree with what you're saying, but I don't think it's enough of an advantage in most cases. "Don't use the generic class" is often used to increase complexity for no reason at all. When the code is not very well documented, it puts me in the position of "OK, I see this class doesn't do anything extra from ArrayList, so why is it here?" and I can go and look at places where it's used and it's doing nothing special, and then I think "certainly the guy before me didn't write extra code just because someone told him not to use the generic classes" - sends me down a rabbit hole of trying to understand reasoning I didn't participate in.

In this question, I'm looking for someone to say, "oh yeah, that's the Lipshitz design pattern, here's a link"
GeneralRe: What do you think this is about? Pin
Eddy Vluggen31-Jul-13 10:42
professionalEddy Vluggen31-Jul-13 10:42 
GeneralRe: What do you think this is about? Pin
Jasmine250131-Jul-13 11:13
Jasmine250131-Jul-13 11:13 
AnswerRe: What do you think this is about? Pin
Ravi Bhavnani31-Jul-13 10:46
professionalRavi Bhavnani31-Jul-13 10:46 
GeneralRe: What do you think this is about? Pin
Jasmine250131-Jul-13 11:18
Jasmine250131-Jul-13 11:18 
GeneralRe: What do you think this is about? Pin
Ravi Bhavnani31-Jul-13 12:02
professionalRavi Bhavnani31-Jul-13 12:02 
GeneralRe: What do you think this is about? Pin
Jasmine250131-Jul-13 12:23
Jasmine250131-Jul-13 12:23 
GeneralRe: What do you think this is about? Pin
Ravi Bhavnani31-Jul-13 12:39
professionalRavi Bhavnani31-Jul-13 12:39 
AnswerRe: What do you think this is about? Pin
Bernhard Hiller31-Jul-13 21:16
Bernhard Hiller31-Jul-13 21:16 
AnswerRe: What do you think this is about? Pin
BillWoodruff1-Aug-13 2:09
professionalBillWoodruff1-Aug-13 2:09 
GeneralRe: What do you think this is about? Pin
Jasmine25012-Aug-13 5:56
Jasmine25012-Aug-13 5:56 
QuestionManaging List<Bitmap> Pin
BBatts31-Jul-13 4:34
BBatts31-Jul-13 4:34 
AnswerRe: Managing List<Bitmap> Pin
OriginalGriff31-Jul-13 8:28
mveOriginalGriff31-Jul-13 8:28 
GeneralRe: Managing List<Bitmap> Pin
BillWoodruff1-Aug-13 2:35
professionalBillWoodruff1-Aug-13 2:35 
GeneralRe: Managing List<Bitmap> Pin
OriginalGriff1-Aug-13 2:54
mveOriginalGriff1-Aug-13 2:54 
AnswerRe: Managing List<Bitmap> Pin
Pete O'Hanlon1-Aug-13 3:04
mvePete O'Hanlon1-Aug-13 3:04 
QuestionRegular expressions. Pin
Septimus Hedgehog31-Jul-13 3:06
Septimus Hedgehog31-Jul-13 3:06 
AnswerRe: Regular expressions. Pin
Pete O'Hanlon31-Jul-13 3:09
mvePete O'Hanlon31-Jul-13 3:09 

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.