Click here to Skip to main content
15,902,447 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using enumerated types Pin
Dewald6-Jun-07 4:57
Dewald6-Jun-07 4:57 
AnswerRe: Using enumerated types Pin
Guffa6-Jun-07 4:10
Guffa6-Jun-07 4:10 
GeneralRe: Using enumerated types Pin
Dewald6-Jun-07 4:49
Dewald6-Jun-07 4:49 
GeneralRe: Using enumerated types Pin
Dave Kreskowiak6-Jun-07 5:06
mveDave Kreskowiak6-Jun-07 5:06 
GeneralRe: Using enumerated types Pin
Guffa6-Jun-07 9:05
Guffa6-Jun-07 9:05 
GeneralRe: Using enumerated types Pin
Dewald6-Jun-07 20:50
Dewald6-Jun-07 20:50 
GeneralRe: Using enumerated types Pin
Guffa6-Jun-07 8:59
Guffa6-Jun-07 8:59 
GeneralRe: Using enumerated types Pin
DavidNohejl6-Jun-07 21:23
DavidNohejl6-Jun-07 21:23 
Guffa wrote:
I prefer using an enum rather than constants in a case like this, as an enum says a lot more about what a method returns than an int does. When a method returns an enum value, you don't have to read a lot of documentation to find out what constants to use to compare the return value with.

If you want the int value you can easily cast the enum to int, and use that with any existing code that requires an int.


Agreed, he said it's native method (so he can't quite change the method return value type itself), but wrapper returning enum would do.




"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

Questionsending SMS Pin
faldupuja6-Jun-07 3:42
faldupuja6-Jun-07 3:42 
AnswerRe: sending SMS Pin
Dave Herren6-Jun-07 6:36
Dave Herren6-Jun-07 6:36 
QuestionFavourite Icon Pin
vibhas19826-Jun-07 2:49
vibhas19826-Jun-07 2:49 
AnswerRe: Favourite Icon Pin
I Believe In GOD6-Jun-07 2:57
I Believe In GOD6-Jun-07 2:57 
AnswerRe: Favourite Icon Pin
I Believe In GOD6-Jun-07 3:01
I Believe In GOD6-Jun-07 3:01 
AnswerRe: Favourite Icon Pin
Guffa6-Jun-07 3:59
Guffa6-Jun-07 3:59 
Questionupdating data Pin
sneha016-Jun-07 2:19
sneha016-Jun-07 2:19 
AnswerRe: updating data Pin
I Believe In GOD6-Jun-07 2:48
I Believe In GOD6-Jun-07 2:48 
AnswerRe: updating data Pin
ganti.r7-Jun-07 0:21
ganti.r7-Jun-07 0:21 
QuestionStart process Pin
gapfulgence6-Jun-07 2:18
gapfulgence6-Jun-07 2:18 
AnswerRe: Start process Pin
I Believe In GOD6-Jun-07 2:40
I Believe In GOD6-Jun-07 2:40 
AnswerRe: Start process Pin
gapfulgence6-Jun-07 2:49
gapfulgence6-Jun-07 2:49 
QuestionRe: Start process Pin
gapfulgence6-Jun-07 3:04
gapfulgence6-Jun-07 3:04 
AnswerRe: Start process Pin
I Believe In GOD6-Jun-07 3:11
I Believe In GOD6-Jun-07 3:11 
QuestionRe: Start process Pin
gapfulgence6-Jun-07 3:26
gapfulgence6-Jun-07 3:26 
GeneralRe: Start process Pin
gapfulgence6-Jun-07 3:46
gapfulgence6-Jun-07 3:46 
AnswerRe: Start process Pin
Dave Kreskowiak6-Jun-07 4:19
mveDave Kreskowiak6-Jun-07 4:19 

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.