Click here to Skip to main content
15,921,179 members
Home / Discussions / C#
   

C#

 
GeneralRe: Shortcuts aint working when MultiLine is true Pin
dan!sh 8-Jan-09 4:46
professional dan!sh 8-Jan-09 4:46 
GeneralRe: Shortcuts aint working when MultiLine is true Pin
Xmen Real 8-Jan-09 4:49
professional Xmen Real 8-Jan-09 4:49 
GeneralRe: Shortcuts aint working when MultiLine is true Pin
dan!sh 8-Jan-09 4:44
professional dan!sh 8-Jan-09 4:44 
GeneralRe: Shortcuts aint working when MultiLine is true Pin
Xmen Real 8-Jan-09 4:51
professional Xmen Real 8-Jan-09 4:51 
QuestionWhich string is more preferred Pin
humayunlalzad8-Jan-09 4:09
humayunlalzad8-Jan-09 4:09 
AnswerRe: Which string is more preferred Pin
dan!sh 8-Jan-09 4:18
professional dan!sh 8-Jan-09 4:18 
GeneralRe: Which string is more preferred Pin
humayunlalzad8-Jan-09 5:16
humayunlalzad8-Jan-09 5:16 
AnswerRe: Which string is more preferred Pin
Guffa8-Jan-09 4:22
Guffa8-Jan-09 4:22 
The Concat method is slightly faster than the others. The Format method and your use of StringBuilder is virtually the same, as the Format method uses a StringBuilder and the AppendFormat method.

When you send the values to the Format and AppendFormat methods, they will be boxed. That means that a new object is created on the heap and the integers are stored in this object. Using the Concat method avoids the boxing.

If you want to use a StringBuilder, this is a better approach:

lblScore.Text = new StringBuilder().Append(correctNums).Append('/').Append(numberOfTurns).ToString();

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: Which string is more preferred Pin
J4amieC8-Jan-09 4:27
J4amieC8-Jan-09 4:27 
GeneralRe: Which string is more preferred Pin
Not Active8-Jan-09 4:31
mentorNot Active8-Jan-09 4:31 
GeneralRe: Which string is more preferred Pin
J4amieC8-Jan-09 5:07
J4amieC8-Jan-09 5:07 
GeneralRe: Which string is more preferred Pin
Not Active8-Jan-09 5:22
mentorNot Active8-Jan-09 5:22 
GeneralRe: Which string is more preferred Pin
J4amieC8-Jan-09 5:34
J4amieC8-Jan-09 5:34 
GeneralRe: Which string is more preferred Pin
Guffa8-Jan-09 7:34
Guffa8-Jan-09 7:34 
GeneralRe: Which string is more preferred Pin
Jon Rista8-Jan-09 6:26
Jon Rista8-Jan-09 6:26 
GeneralRe: Which string is more preferred Pin
humayunlalzad8-Jan-09 5:23
humayunlalzad8-Jan-09 5:23 
GeneralRe: Which string is more preferred Pin
J4amieC8-Jan-09 5:32
J4amieC8-Jan-09 5:32 
GeneralRe: Which string is more preferred Pin
Guffa8-Jan-09 6:45
Guffa8-Jan-09 6:45 
GeneralRe: Which string is more preferred Pin
Guffa8-Jan-09 5:41
Guffa8-Jan-09 5:41 
GeneralRe: Which string is more preferred Pin
Jon Rista8-Jan-09 6:20
Jon Rista8-Jan-09 6:20 
GeneralRe: Which string is more preferred Pin
Jon Rista8-Jan-09 6:37
Jon Rista8-Jan-09 6:37 
AnswerRe: Which string is more preferred Pin
PIEBALDconsult8-Jan-09 12:29
mvePIEBALDconsult8-Jan-09 12:29 
QuestionCreating Excel chart using reflection Pin
dan!sh 8-Jan-09 3:35
professional dan!sh 8-Jan-09 3:35 
AnswerRe: Creating Excel chart using reflection Pin
moon_stick8-Jan-09 3:41
moon_stick8-Jan-09 3:41 
GeneralRe: Creating Excel chart using reflection Pin
dan!sh 8-Jan-09 3:44
professional dan!sh 8-Jan-09 3:44 

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.