Click here to Skip to main content
15,906,947 members
Home / Discussions / C#
   

C#

 
AnswerRe: jpg is not deleted Pin
Pete O'Hanlon21-May-08 9:06
mvePete O'Hanlon21-May-08 9:06 
GeneralRe: jpg is not deleted Pin
netJP12L21-May-08 9:56
netJP12L21-May-08 9:56 
GeneralRe: jpg is not deleted Pin
Peter Josefsson Sweden21-May-08 12:42
Peter Josefsson Sweden21-May-08 12:42 
QuestionImage.equals() not working. Pin
ctoma200521-May-08 6:38
ctoma200521-May-08 6:38 
AnswerRe: Image.equals() not working. Pin
carbon_golem21-May-08 7:08
carbon_golem21-May-08 7:08 
QuestionDateTime.TryParse Pin
Kjetil Svendsen21-May-08 6:06
Kjetil Svendsen21-May-08 6:06 
AnswerRe: DateTime.TryParse Pin
Giorgi Dalakishvili21-May-08 6:15
mentorGiorgi Dalakishvili21-May-08 6:15 
QuestionRe: DateTime.TryParse Pin
Kjetil Svendsen21-May-08 22:41
Kjetil Svendsen21-May-08 22:41 
AnswerRe: DateTime.TryParse Pin
DaveyM6922-May-08 11:08
professionalDaveyM6922-May-08 11:08 
GeneralRe: DateTime.TryParse Pin
Kjetil Svendsen23-May-08 0:37
Kjetil Svendsen23-May-08 0:37 
QuestionProgressBar beginners question Pin
NewToAspDotNet21-May-08 4:53
NewToAspDotNet21-May-08 4:53 
AnswerRe: ProgressBar beginners question Pin
Giorgi Dalakishvili21-May-08 5:00
mentorGiorgi Dalakishvili21-May-08 5:00 
QuestionExecuting delegate in a different thread Pin
Artur Löwen21-May-08 4:17
Artur Löwen21-May-08 4:17 
AnswerRe: Executing delegate in a different thread Pin
Laddie21-May-08 4:30
Laddie21-May-08 4:30 
GeneralRe: Executing delegate in a different thread Pin
Artur Löwen21-May-08 4:58
Artur Löwen21-May-08 4:58 
GeneralRe: Executing delegate in a different thread Pin
Peter Josefsson Sweden21-May-08 5:33
Peter Josefsson Sweden21-May-08 5:33 
GeneralRe: Executing delegate in a different thread Pin
Bekjong21-May-08 5:38
Bekjong21-May-08 5:38 
GeneralRe: Executing delegate in a different thread Pin
Peter Josefsson Sweden21-May-08 13:00
Peter Josefsson Sweden21-May-08 13:00 
QuestionRead USB device names Pin
kristofvanderhaeghen21-May-08 3:35
kristofvanderhaeghen21-May-08 3:35 
AnswerRe: Read USB device names Pin
Giorgi Dalakishvili21-May-08 3:44
mentorGiorgi Dalakishvili21-May-08 3:44 
QuestionStringBuilder Speed Question Pin
Reelix21-May-08 3:11
Reelix21-May-08 3:11 
AnswerRe: StringBuilder Speed Question PinPopular
Guffa21-May-08 4:00
Guffa21-May-08 4:00 
The StringBuilder uses an internal buffer that normally has some unused space at the end, so when you add characters to it, they are just placed in this unused space. It's only when it runs out of unused space that it has to allocate a new buffer an copy all data to it. The new buffer is twice the size of the original buffer, so it only has to do this 24 times to accomodate 10000000 characters.

If you remove some characters at the beginning of the buffer, all the remaining characters have to be moved. Doing this 500 times should take somewhere around 100 times as long as creating the string. Which is does.

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

QuestionRe: StringBuilder Speed Question Pin
buchstaben21-May-08 4:01
buchstaben21-May-08 4:01 
AnswerRe: StringBuilder Speed Question PinPopular
Colin Angus Mackay21-May-08 4:07
Colin Angus Mackay21-May-08 4:07 
AnswerRe: StringBuilder Speed Question Pin
Reelix21-May-08 4:25
Reelix21-May-08 4:25 

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.