Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to store GPS Device data in the SQL data base Pin
Simon_Whale14-Dec-14 23:46
Simon_Whale14-Dec-14 23:46 
QuestionMessage Removed Pin
14-Dec-14 5:38
owais201214-Dec-14 5:38 
QuestionGet the Processor / Bios MAC using C# Pin
Jassim Rahma14-Dec-14 4:21
Jassim Rahma14-Dec-14 4:21 
AnswerRe: Get the Processor / Bios MAC using C# Pin
OriginalGriff14-Dec-14 4:32
mveOriginalGriff14-Dec-14 4:32 
AnswerRe: Get the Processor / Bios MAC using C# Pin
Slalom Zhang14-Dec-14 4:34
Slalom Zhang14-Dec-14 4:34 
Questionextending an Enum in code outside the Enum : C# language feature Pin
BillWoodruff12-Dec-14 22:19
professionalBillWoodruff12-Dec-14 22:19 
AnswerRe: extending an Enum in code outside the Enum : C# language feature Pin
OriginalGriff12-Dec-14 23:08
mveOriginalGriff12-Dec-14 23:08 
GeneralRe: extending an Enum in code outside the Enum : C# language feature Pin
BillWoodruff12-Dec-14 23:53
professionalBillWoodruff12-Dec-14 23:53 
Thanks for your response ! I find it interesting that I do get a design-time warning in the VS editor via a pop-up that opens if I mouse-over the "|" character about the fact the [Flags} attribute is not used, but the code certainly works fine.

My "instinctive" negative reaction to taking advantage of these "liberal" syntactic forms with Enum seems to have these components:

1. I can't ... yet ... see a clear example of a real "pay-off" ... a "big win" ... from using these forms.

2. I can imagine looking at code a year later that I wrote, or code someone else wrote, using these forms, and finding it harder to understand, maintain, and debug. imho one "benefit" of using an Enum is that it is self-documenting in a high-level way.

3. While I am just examining, with interest, such tools as Logozzo's CodeContracts, using these forms would break the CodeContracts' 'ccCheck tool (or some other AOP processing ?) which is designed to test for having all case statements that could be evaluated against the values of the Enum present.

But, what is life for but changing instinctive aversions to hypotheses, or conclusions, evaluated by clear reason Smile | :)
«OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. »  Alan Kay's clarification on what he meant by the term "Object" in "Object-Oriented Programming."

GeneralRe: extending an Enum in code outside the Enum : C# language feature Pin
OriginalGriff13-Dec-14 0:36
mveOriginalGriff13-Dec-14 0:36 
GeneralRe: extending an Enum in code outside the Enum : C# language feature Pin
BillWoodruff13-Dec-14 0:59
professionalBillWoodruff13-Dec-14 0:59 
Questionthread Safe Pin
Member 1082714012-Dec-14 20:56
Member 1082714012-Dec-14 20:56 
AnswerRe: thread Safe Pin
Richard MacCutchan12-Dec-14 22:08
mveRichard MacCutchan12-Dec-14 22:08 
QuestionWindows form controls reposition when DPI changes Pin
robwm112-Dec-14 11:42
robwm112-Dec-14 11:42 
AnswerRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen12-Dec-14 14:06
professionalEddy Vluggen12-Dec-14 14:06 
GeneralRe: Windows form controls reposition when DPI changes Pin
robwm115-Dec-14 7:56
robwm115-Dec-14 7:56 
GeneralRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen16-Dec-14 0:28
professionalEddy Vluggen16-Dec-14 0:28 
GeneralRe: Windows form controls reposition when DPI changes Pin
robwm116-Dec-14 5:42
robwm116-Dec-14 5:42 
GeneralRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen16-Dec-14 5:58
professionalEddy Vluggen16-Dec-14 5:58 
GeneralRe: Windows form controls reposition when DPI changes Pin
robwm116-Dec-14 6:59
robwm116-Dec-14 6:59 
GeneralRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen16-Dec-14 7:33
professionalEddy Vluggen16-Dec-14 7:33 
GeneralRe: Windows form controls reposition when DPI changes Pin
robwm116-Dec-14 7:39
robwm116-Dec-14 7:39 
GeneralRe: Windows form controls reposition when DPI changes Pin
robwm116-Dec-14 11:46
robwm116-Dec-14 11:46 
GeneralRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen17-Dec-14 0:27
professionalEddy Vluggen17-Dec-14 0:27 
QuestionBitmap Dispose Pin
V.12-Dec-14 2:26
professionalV.12-Dec-14 2:26 
AnswerRe: Bitmap Dispose Pin
Marc Clifton12-Dec-14 3:11
mvaMarc Clifton12-Dec-14 3:11 

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.