Click here to Skip to main content
15,892,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: Switching a program from foreground to background Pin
Trollslayer26-Jun-10 23:38
mentorTrollslayer26-Jun-10 23:38 
GeneralRe: Switching a program from foreground to background Pin
WubbleU26-Jun-10 23:42
WubbleU26-Jun-10 23:42 
GeneralRe: Switching a program from foreground to background Pin
Trollslayer27-Jun-10 0:09
mentorTrollslayer27-Jun-10 0:09 
GeneralRe: Switching a program from foreground to background Pin
Richard MacCutchan27-Jun-10 0:15
mveRichard MacCutchan27-Jun-10 0:15 
AnswerRe: Switching a program from foreground to background Pin
PIEBALDconsult27-Jun-10 4:08
mvePIEBALDconsult27-Jun-10 4:08 
GeneralRe: Switching a program from foreground to background Pin
WubbleU1-Jul-10 16:37
WubbleU1-Jul-10 16:37 
GeneralRe: Switching a program from foreground to background Pin
WubbleU3-Jul-10 19:50
WubbleU3-Jul-10 19:50 
QuestionStringBuilder and String [modified] Pin
NetQuestions26-Jun-10 22:28
NetQuestions26-Jun-10 22:28 
Hi,

On using data type StringBuilder, I find that sufficient instances of data type string is also getting
allocated!

I saw this information when I used VSTS profiler to understand memory allocation.

Isn't StringBuilder and string totally different data types or is it that
internally stringbuilder is nothing but of the type string?

My code is very straightforward

StringBuilder str = new StringBuilder;

for (int i =0; i < 10; i++)
{
   str.Append("Net");
}


Regards,
NetQuestions

modified on Sunday, June 27, 2010 4:41 AM

AnswerRe: StringBuilder and String Pin
Keith Barrow26-Jun-10 22:49
professionalKeith Barrow26-Jun-10 22:49 
AnswerRe: StringBuilder and String Pin
OriginalGriff26-Jun-10 22:57
mveOriginalGriff26-Jun-10 22:57 
AnswerRe: StringBuilder and String Pin
harold aptroot27-Jun-10 2:34
harold aptroot27-Jun-10 2:34 
GeneralRe: StringBuilder and String Pin
Daniel Grunwald29-Jun-10 0:41
Daniel Grunwald29-Jun-10 0:41 
GeneralRe: StringBuilder and String Pin
harold aptroot29-Jun-10 0:51
harold aptroot29-Jun-10 0:51 
AnswerRe: StringBuilder and String Pin
PIEBALDconsult27-Jun-10 5:36
mvePIEBALDconsult27-Jun-10 5:36 
QuestionDOT MATRIX PRINTING PROBLEM Pin
vishnukamath26-Jun-10 20:03
vishnukamath26-Jun-10 20:03 
AnswerRe: DOT MATRIX PRINTING PROBLEM Pin
DaveAuld26-Jun-10 21:32
professionalDaveAuld26-Jun-10 21:32 
QuestionQuick Watch Pin
Darrall26-Jun-10 10:36
Darrall26-Jun-10 10:36 
AnswerRe: Quick Watch Pin
Pete O'Hanlon26-Jun-10 10:51
mvePete O'Hanlon26-Jun-10 10:51 
GeneralRe: Quick Watch Pin
Darrall26-Jun-10 10:53
Darrall26-Jun-10 10:53 
GeneralRe: Quick Watch Pin
Pete O'Hanlon26-Jun-10 11:01
mvePete O'Hanlon26-Jun-10 11:01 
AnswerRe: Quick Watch Pin
riced26-Jun-10 10:53
riced26-Jun-10 10:53 
GeneralRe: Quick Watch Pin
Darrall26-Jun-10 10:54
Darrall26-Jun-10 10:54 
Newsdatagridview data transfer from one form to other form Pin
sher ali26-Jun-10 10:31
sher ali26-Jun-10 10:31 
AnswerRe: datagridview data transfer from one form to other form Pin
Praveen Raghuvanshi26-Jun-10 11:11
professionalPraveen Raghuvanshi26-Jun-10 11:11 
GeneralRe: datagridview data transfer from one form to other form Pin
vineesh v26-Jun-10 19:45
vineesh v26-Jun-10 19:45 

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.