Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get number used for Enum Pin
codemunkeh26-Oct-07 3:21
codemunkeh26-Oct-07 3:21 
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 
Ninja-the-Nerd wrote:
what the heck does the (Int32) prefix do? Is it some sort of implicit conversion?


No, it's an explicit conversion.

An implicit conversion is when the conversion is done without specifying the data type, this is allowed when widening types, like from a byte to an int. Example:

byte data = 42;<br />
int moreData = data;


An explicit conversion is when you specify the data type. This is used to tell the compiler that you want the conversion eventhough the compiler doesn't know if it will always work, or when an implicit conversion isn't allowed, like with an enum. Example:

int data = 42;<br />
byte lessData = (byte)data;


---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams

GeneralRe: Get number used for Enum Pin
MCEdwards26-Oct-07 6:02
MCEdwards26-Oct-07 6:02 
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 

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.