Click here to Skip to main content
15,921,577 members
Home / Discussions / C#
   

C#

 
GeneralDoEvents can be dangerous Pin
Wayne Phipps14-Feb-07 10:07
Wayne Phipps14-Feb-07 10:07 
GeneralRe: DoEvents can be dangerous Pin
Ed.Poore14-Feb-07 10:22
Ed.Poore14-Feb-07 10:22 
AnswerRe: How to write on a textarea when going thru a big loop? Pin
Bassam Saoud14-Feb-07 5:24
Bassam Saoud14-Feb-07 5:24 
AnswerRe: How to write on a textarea when going thru a big loop? Pin
Stefan Troschuetz14-Feb-07 5:33
Stefan Troschuetz14-Feb-07 5:33 
QuestionEnumerators In C# Pin
Tee12314-Feb-07 4:30
Tee12314-Feb-07 4:30 
AnswerRe: Enumerators In C# Pin
Colin Angus Mackay14-Feb-07 4:47
Colin Angus Mackay14-Feb-07 4:47 
GeneralRe: Enumerators In C# Pin
Tee12314-Feb-07 5:14
Tee12314-Feb-07 5:14 
GeneralRe: Enumerators In C# Pin
Colin Angus Mackay14-Feb-07 5:25
Colin Angus Mackay14-Feb-07 5:25 
Terrance Copling wrote:
Why can't I just write: Console.WriteLine("Value of Honda is {0}", Cars.Honda);


Because that would print out "Value of Honda is Honda". I presume the ToString on an enum is set to print out the name of the value rather than the value itself. Hence the need to cast it to an int.


Terrance Copling wrote:
Is this a silly question?


People tell me there are no silly questions. Big Grin | :-D

I don't know if this really helps. It is a bit of a circular answer: It does it this way because it does.

I've never found this design to be a problem or limiting factor in all the time I've used C# (i.e. since it was in beta in 2001)


GeneralRe: Enumerators In C# Pin
Ed.Poore14-Feb-07 6:41
Ed.Poore14-Feb-07 6:41 
GeneralRe: Enumerators In C# Pin
Russell Jones14-Feb-07 6:03
Russell Jones14-Feb-07 6:03 
GeneralRe: Enumerators In C# Pin
Tee12314-Feb-07 9:54
Tee12314-Feb-07 9:54 
GeneralRe: Enumerators In C# Pin
Russell Jones14-Feb-07 22:22
Russell Jones14-Feb-07 22:22 
QuestionFind location of Notification area(SysTray) [modified] Pin
Russell Jones14-Feb-07 4:15
Russell Jones14-Feb-07 4:15 
AnswerRe: Find location of Notification area(SysTray) Pin
Stefan Troschuetz14-Feb-07 4:33
Stefan Troschuetz14-Feb-07 4:33 
QuestionCreate an entry in the left-click menu of word files Pin
Muhammad Nauman Yousuf14-Feb-07 3:56
Muhammad Nauman Yousuf14-Feb-07 3:56 
QuestionDeploy Font in Windows Application Pin
yesufollower14-Feb-07 3:28
yesufollower14-Feb-07 3:28 
AnswerRe: Deploy Font in Windows Application Pin
sharpiesharpie14-Feb-07 5:29
sharpiesharpie14-Feb-07 5:29 
GeneralRe: Deploy Font in Windows Application Pin
Martin#14-Feb-07 5:40
Martin#14-Feb-07 5:40 
QuestionFTP code Pin
Glau14-Feb-07 3:26
Glau14-Feb-07 3:26 
AnswerRe: FTP code Pin
sharpiesharpie14-Feb-07 4:09
sharpiesharpie14-Feb-07 4:09 
AnswerRe: FTP code Pin
Ed.Poore14-Feb-07 6:43
Ed.Poore14-Feb-07 6:43 
QuestionLooping Pin
Jim Warburton14-Feb-07 3:19
Jim Warburton14-Feb-07 3:19 
AnswerRe: Looping Pin
andyharman14-Feb-07 3:27
professionalandyharman14-Feb-07 3:27 
AnswerRe: Looping Pin
tarasp14-Feb-07 3:44
tarasp14-Feb-07 3:44 
AnswerRe: Looping Pin
tarasp14-Feb-07 3:48
tarasp14-Feb-07 3:48 

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.