Click here to Skip to main content
15,915,324 members
Home / Discussions / C#
   

C#

 
AnswerRe: forcasting wheater Pin
Ravi Bhavnani6-Feb-07 14:48
professionalRavi Bhavnani6-Feb-07 14:48 
GeneralRe: forcasting wheater Pin
gerri2027-Feb-07 9:25
gerri2027-Feb-07 9:25 
GeneralRe: forcasting wheater Pin
Ravi Bhavnani7-Feb-07 10:02
professionalRavi Bhavnani7-Feb-07 10:02 
QuestionScroll Bar Position Mirroring Pin
Rabbit176-Feb-07 12:53
Rabbit176-Feb-07 12:53 
AnswerRe: Scroll Bar Position Mirroring Pin
Christian Graus6-Feb-07 13:30
protectorChristian Graus6-Feb-07 13:30 
QuestionType conversion Pin
robert1106-Feb-07 10:26
robert1106-Feb-07 10:26 
AnswerRe: Type conversion Pin
philip_cole6-Feb-07 11:14
philip_cole6-Feb-07 11:14 
GeneralRe: Type conversion Pin
aSarafian6-Feb-07 20:37
aSarafian6-Feb-07 20:37 
philip_cole wrote:
(int)MyValue is casting MyValue to type int. This means that MyValue has to be an int in the first place, or a type inherited from int (which isn't possible of course!). This is a faster method, because very little has to be checked or changed in memory, but you have to know that MyValue is actually an int.


Some remarks and I would appriciate your input.
(int)Something conversion is applicable when Something is a numeric type. It just does the convertion without caring what data is lost.

I did sometesting and here is what i came across
string a1="5";<br />
int b1=(int)a1;

result in a compiler error

object a1="5";<br />
int b1=(int)a1;

result in runtime casting exception Error.
Questionvoice in chat Pin
matata_mn6-Feb-07 10:11
matata_mn6-Feb-07 10:11 
AnswerRe: voice in chat Pin
jack_claudine6-Feb-07 14:56
jack_claudine6-Feb-07 14:56 
GeneralRe: voice in chat Pin
matata_mn6-Feb-07 20:24
matata_mn6-Feb-07 20:24 
Questioncmd's tree structure execution from application Pin
THE DDDD6-Feb-07 10:05
THE DDDD6-Feb-07 10:05 
AnswerRe: cmd's tree structure execution from application Pin
Ravi Bhavnani6-Feb-07 16:05
professionalRavi Bhavnani6-Feb-07 16:05 
AnswerRe: cmd's tree structure execution from application Pin
Judah Gabriel Himango6-Feb-07 16:07
sponsorJudah Gabriel Himango6-Feb-07 16:07 
QuestionInheriting a Form via Class Pin
Rizawn6-Feb-07 9:23
Rizawn6-Feb-07 9:23 
AnswerRe: Inheriting a Form via Class Pin
Pete O'Hanlon6-Feb-07 9:42
mvePete O'Hanlon6-Feb-07 9:42 
QuestionHaving a System Tray app slide it's form up into view Pin
LongRange.Shooter6-Feb-07 9:21
LongRange.Shooter6-Feb-07 9:21 
AnswerRe: Having a System Tray app slide it's form up into view Pin
Rizawn6-Feb-07 9:29
Rizawn6-Feb-07 9:29 
QuestionGet keys Pin
drc_no16-Feb-07 9:21
drc_no16-Feb-07 9:21 
AnswerRe: Get keys Pin
jack_claudine6-Feb-07 15:06
jack_claudine6-Feb-07 15:06 
AnswerRe: Get keys Pin
Stefan Troschuetz6-Feb-07 21:59
Stefan Troschuetz6-Feb-07 21:59 
GeneralRe: Get keys Pin
drc_no16-Feb-07 22:02
drc_no16-Feb-07 22:02 
QuestionAssembly Pin
vasini6-Feb-07 8:41
vasini6-Feb-07 8:41 
AnswerRe: Assembly Pin
DavidNohejl6-Feb-07 8:49
DavidNohejl6-Feb-07 8:49 
GeneralRe: Assembly Pin
venuvista6-Feb-07 19:02
venuvista6-Feb-07 19:02 

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.