Click here to Skip to main content
16,004,828 members
Home / Discussions / C#
   

C#

 
JokeRe: Get number used for Enum Pin
Anthony Mushrow26-Oct-07 7:13
professionalAnthony Mushrow26-Oct-07 7:13 
GeneralRe: Get number used for Enum Pin
Luc Pattyn26-Oct-07 13:20
sitebuilderLuc Pattyn26-Oct-07 13:20 
GeneralRe: Get number used for Enum Pin
Anthony Mushrow26-Oct-07 13:33
professionalAnthony Mushrow26-Oct-07 13:33 
GeneralRe: Get number used for Enum Pin
Luc Pattyn26-Oct-07 14:08
sitebuilderLuc Pattyn26-Oct-07 14:08 
GeneralRe: Get number used for Enum Pin
Anthony Mushrow26-Oct-07 14:16
professionalAnthony Mushrow26-Oct-07 14:16 
GeneralRe: Get number used for Enum Pin
Luc Pattyn26-Oct-07 14:49
sitebuilderLuc Pattyn26-Oct-07 14:49 
AnswerRe: Get number used for Enum Pin
Guffa26-Oct-07 6:24
Guffa26-Oct-07 6:24 
GeneralRe: Get number used for Enum Pin
MCEdwards26-Oct-07 6:02
MCEdwards26-Oct-07 6:02 
I think a slightly better solution in this case is to use the int type rather than the Int32 object.

I have not really used the Int32 object but I assume that it acts in the same way as other objects in that it passes itself by reference instead of value. This may then catch out other developers who are used to integers being value types and not objects.

Instead use:
<br />
TestEnum te = new TestEnum();<br />
<br />
int enumNumber = (int) te;


Hope this helps.
AnswerRe: Get number used for Enum Pin
Guffa26-Oct-07 6:35
Guffa26-Oct-07 6:35 
QuestionHow to split large dataset in to two dataset Pin
pekhaleyogesh26-Oct-07 2:49
pekhaleyogesh26-Oct-07 2:49 
AnswerRe: How to split large dataset in to two dataset Pin
il_masacratore26-Oct-07 3:07
il_masacratore26-Oct-07 3:07 
QuestionDisplaying httpResponse in listView Control in C#.NET when send httpRequest to a page Pin
D i x y26-Oct-07 2:49
D i x y26-Oct-07 2:49 
QuestionSending http request to server using C#.net Pin
D i x y26-Oct-07 2:28
D i x y26-Oct-07 2:28 
AnswerRe: Sending http request to server using C#.net Pin
Vasudevan Deepak Kumar26-Oct-07 2:30
Vasudevan Deepak Kumar26-Oct-07 2:30 
AnswerRe: Sending http request to server using C#.net Pin
Ravi Bhavnani26-Oct-07 4:44
professionalRavi Bhavnani26-Oct-07 4:44 
AnswerRe: Sending http request to server using C#.net Pin
MCEdwards26-Oct-07 5:57
MCEdwards26-Oct-07 5:57 
QuestionBitmap to Jpeg conversion Pin
B!Z26-Oct-07 2:00
B!Z26-Oct-07 2:00 
AnswerRe: Bitmap to Jpeg conversion Pin
Vasudevan Deepak Kumar26-Oct-07 2:33
Vasudevan Deepak Kumar26-Oct-07 2:33 
QuestionHow to do matrix multiplication by reading data in two data grid Pin
rj.rajakumar26-Oct-07 1:44
rj.rajakumar26-Oct-07 1:44 
AnswerRe: How to do matrix multiplication by reading data in two data grid Pin
Paul Conrad27-Oct-07 11:17
professionalPaul Conrad27-Oct-07 11:17 
QuestionGrayscale image Pin
yohanes.luhur26-Oct-07 1:38
yohanes.luhur26-Oct-07 1:38 
AnswerRe: Grayscale image Pin
Luc Pattyn26-Oct-07 2:57
sitebuilderLuc Pattyn26-Oct-07 2:57 
AnswerRe: Grayscale image Pin
Christian Graus26-Oct-07 11:45
protectorChristian Graus26-Oct-07 11:45 
AnswerRe: foreach [modified] Pin
Anthony Mushrow26-Oct-07 1:39
professionalAnthony Mushrow26-Oct-07 1:39 
GeneralRe: foreach Pin
Justin Perez26-Oct-07 3:11
Justin Perez26-Oct-07 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.