Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
QuestionUnbound RadioButtonList Selected Item Problem Pin
amit201123-Oct-08 1:59
amit201123-Oct-08 1:59 
QuestionHelp me in exception handaling Pin
Shantonu23-Oct-08 1:38
Shantonu23-Oct-08 1:38 
QuestionRe: Help me in exception handaling Pin
Eddy Vluggen23-Oct-08 2:02
professionalEddy Vluggen23-Oct-08 2:02 
AnswerRe: Help me in exception handaling Pin
josephbhaskar23-Oct-08 3:39
josephbhaskar23-Oct-08 3:39 
Questionsoundx coding Pin
Preeti197923-Oct-08 1:36
Preeti197923-Oct-08 1:36 
AnswerRe: soundx coding Pin
Eddy Vluggen23-Oct-08 1:42
professionalEddy Vluggen23-Oct-08 1:42 
QuestionWhy if i dont convert a integer to string the output will be coming? Pin
Samiullah23-Oct-08 0:43
Samiullah23-Oct-08 0:43 
AnswerRe: Why if i dont convert a integer to string the output will be coming? Pin
Simon P Stevens23-Oct-08 0:54
Simon P Stevens23-Oct-08 0:54 
It still works because, the '+' operator has been overloaded to take various different combinations of types. In this case, the + operator is taking a string an an integer so is calling its overload for 2 objects: String.Concat(Object, Object)

The integer gets boxed as an object.

The Concat() method obviously then calls ToString() on the objects, concatenates the strings and returns the result. Which is then assigned to the 'message' variable.

You can confirm this by using ILDasm to look at the compiled IL.

(Because there is boxing occurring, this is not as efficient as calling ToString() on the integer yourself, although for most cases it won't actually make any difference)

Simon

GeneralRe: Why if i dont convert a integer to string the output will be coming? Pin
Samiullah23-Oct-08 1:56
Samiullah23-Oct-08 1:56 
GeneralRe: Why if i dont convert a integer to string the output will be coming? Pin
Guffa23-Oct-08 2:33
Guffa23-Oct-08 2:33 
GeneralRe: Why if i dont convert a integer to string the output will be coming? Pin
Simon P Stevens23-Oct-08 2:35
Simon P Stevens23-Oct-08 2:35 
GeneralRe: Why if i dont convert a integer to string the output will be coming? Pin
Dan Neely23-Oct-08 4:42
Dan Neely23-Oct-08 4:42 
QuestionTCPListener and SOAP Pin
Wilkov23-Oct-08 0:22
Wilkov23-Oct-08 0:22 
QuestionHow to draw combine shapes like Visio? Pin
Duong Tien Nam23-Oct-08 0:09
Duong Tien Nam23-Oct-08 0:09 
Question3 layers model documents Pin
hockymot2008_200923-Oct-08 0:01
hockymot2008_200923-Oct-08 0:01 
AnswerRe: 3 layers model documents Pin
AhsanS23-Oct-08 0:06
AhsanS23-Oct-08 0:06 
GeneralRe: 3 layers model documents Pin
ArghavanMostafa9-Jun-11 2:21
ArghavanMostafa9-Jun-11 2:21 
AnswerRe: 3 layers model documents Pin
Eddy Vluggen23-Oct-08 0:27
professionalEddy Vluggen23-Oct-08 0:27 
GeneralRe: 3 layers model documents Pin
hockymot2008_200923-Oct-08 4:51
hockymot2008_200923-Oct-08 4:51 
QuestionHow to create memory file? Pin
Arish rivlin23-Oct-08 0:01
Arish rivlin23-Oct-08 0:01 
AnswerRe: How to create memory file? Pin
AhsanS23-Oct-08 0:07
AhsanS23-Oct-08 0:07 
GeneralRe: How to create memory file? Pin
Arish rivlin23-Oct-08 0:10
Arish rivlin23-Oct-08 0:10 
GeneralRe: How to create memory file? Pin
Eddy Vluggen23-Oct-08 0:24
professionalEddy Vluggen23-Oct-08 0:24 
GeneralRe: How to create memory file? Pin
Arish rivlin23-Oct-08 1:17
Arish rivlin23-Oct-08 1:17 
GeneralRe: How to create memory file? Pin
Eddy Vluggen23-Oct-08 1:32
professionalEddy Vluggen23-Oct-08 1:32 

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.