Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I cast a double to an int? Pin
Justiin126511-Apr-11 8:14
Justiin126511-Apr-11 8:14 
GeneralRe: How do I cast a double to an int? Pin
AspDotNetDev11-Apr-11 8:29
protectorAspDotNetDev11-Apr-11 8:29 
QuestionPRE Tagged Pin
AspDotNetDev11-Apr-11 8:11
protectorAspDotNetDev11-Apr-11 8:11 
AnswerRe: PRE Tagged Pin
Luc Pattyn11-Apr-11 8:16
sitebuilderLuc Pattyn11-Apr-11 8:16 
AnswerRe: How do I cast a double to an int? [modified] Pin
Luc Pattyn11-Apr-11 8:14
sitebuilderLuc Pattyn11-Apr-11 8:14 
GeneralRe: How do I cast a double to an int? Pin
AspDotNetDev11-Apr-11 8:21
protectorAspDotNetDev11-Apr-11 8:21 
GeneralRe: How do I cast a double to an int? Pin
Luc Pattyn11-Apr-11 8:27
sitebuilderLuc Pattyn11-Apr-11 8:27 
GeneralRe: How do I cast a double to an int? Pin
David198711-Apr-11 8:45
David198711-Apr-11 8:45 
AnswerRe: How do I cast a double to an int? Pin
Luc Pattyn11-Apr-11 8:55
sitebuilderLuc Pattyn11-Apr-11 8:55 
GeneralRe: How do I cast a double to an int? Pin
David198711-Apr-11 9:04
David198711-Apr-11 9:04 
GeneralRe: How do I cast a double to an int? Pin
Luc Pattyn11-Apr-11 9:25
sitebuilderLuc Pattyn11-Apr-11 9:25 
AnswerRe: How do I cast a double to an int? Pin
charles henington12-Apr-11 1:34
charles henington12-Apr-11 1:34 
Questiondropdown to enum Pin
fififlowertot11-Apr-11 5:04
fififlowertot11-Apr-11 5:04 
AnswerRe: dropdown to enum PinPopular
OriginalGriff11-Apr-11 5:11
mveOriginalGriff11-Apr-11 5:11 
GeneralRe: dropdown to enum Pin
fififlowertot11-Apr-11 5:35
fififlowertot11-Apr-11 5:35 
GeneralRe: dropdown to enum Pin
musefan11-Apr-11 5:40
musefan11-Apr-11 5:40 
GeneralRe: dropdown to enum Pin
OriginalGriff11-Apr-11 5:48
mveOriginalGriff11-Apr-11 5:48 
GeneralRe: dropdown to enum Pin
BobJanova11-Apr-11 5:39
BobJanova11-Apr-11 5:39 
GeneralRe: dropdown to enum Pin
OriginalGriff11-Apr-11 5:49
mveOriginalGriff11-Apr-11 5:49 
GeneralRe: dropdown to enum Pin
fififlowertot11-Apr-11 5:50
fififlowertot11-Apr-11 5:50 
GeneralRe: dropdown to enum Pin
OriginalGriff11-Apr-11 6:03
mveOriginalGriff11-Apr-11 6:03 
You definitely shouldn't do that! If you have any differences between the two enums in the different namespaces, you will get bad results. The only reason it doesn't complain is that Enum.Parse returns an object, which can be cast to either type.

This is another reason why I prefer the TryParse method: It is strongly typed!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

Manfred R. Bihy: "Looks as if OP is learning resistant."

GeneralRe: dropdown to enum Pin
BobJanova11-Apr-11 22:16
BobJanova11-Apr-11 22:16 
AnswerRe: dropdown to enum Pin
Alan N11-Apr-11 5:53
Alan N11-Apr-11 5:53 
QuestionHow to sync Data of 2 c# projects? Pin
akosidandan11-Apr-11 3:04
akosidandan11-Apr-11 3:04 
AnswerRe: How to sync Data of 2 c# projects? Pin
Wayne Gaylard11-Apr-11 3:11
professionalWayne Gaylard11-Apr-11 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.