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

C#

 
AnswerRe: Do I need to Stop investing on C# just because F# is there ? Pin
Eddy Vluggen5-Feb-10 23:16
professionalEddy Vluggen5-Feb-10 23:16 
AnswerRe: Do I need to Stop investing on C# just because F# is there ? Pin
Md. Marufuzzaman6-Feb-10 1:04
professionalMd. Marufuzzaman6-Feb-10 1:04 
AnswerRe: Do I need to Stop investing on C# just because F# is there ? Pin
darkelv6-Feb-10 3:46
darkelv6-Feb-10 3:46 
AnswerRe: Do I need to Stop investing on C# just because F# is there ? Pin
Dave Doknjas6-Feb-10 12:58
Dave Doknjas6-Feb-10 12:58 
Questionclose all opened windows Pin
MathewPV5-Feb-10 21:44
MathewPV5-Feb-10 21:44 
AnswerRe: close all opened windows Pin
OriginalGriff5-Feb-10 22:34
mveOriginalGriff5-Feb-10 22:34 
AnswerRe: close all opened windows Pin
Luc Pattyn6-Feb-10 1:54
sitebuilderLuc Pattyn6-Feb-10 1:54 
GeneralRe: close all opened windows Pin
MathewPV7-Feb-10 16:47
MathewPV7-Feb-10 16:47 
AnswerRe: close all opened windows Pin
Luc Pattyn7-Feb-10 16:51
sitebuilderLuc Pattyn7-Feb-10 16:51 
AnswerRe: close all opened windows Pin
Member 43497939-Feb-10 23:50
Member 43497939-Feb-10 23:50 
QuestionHow to replace string with StringBuilder Pin
Aseem Sharma5-Feb-10 20:58
Aseem Sharma5-Feb-10 20:58 
AnswerRe: How to replace string with StringBuilder Pin
Chetan Patel5-Feb-10 21:54
Chetan Patel5-Feb-10 21:54 
GeneralRe: How to replace string with StringBuilder Pin
Aseem Sharma5-Feb-10 23:59
Aseem Sharma5-Feb-10 23:59 
AnswerRe: How to replace string with StringBuilder Pin
OriginalGriff5-Feb-10 21:59
mveOriginalGriff5-Feb-10 21:59 
GeneralRe: How to replace string with StringBuilder Pin
Aseem Sharma6-Feb-10 0:01
Aseem Sharma6-Feb-10 0:01 
GeneralRe: How to replace string with StringBuilder Pin
OriginalGriff6-Feb-10 0:11
mveOriginalGriff6-Feb-10 0:11 
AnswerRe: How to replace string with StringBuilder Pin
Rob Philpott5-Feb-10 22:02
Rob Philpott5-Feb-10 22:02 
AnswerRe: How to replace string with StringBuilder Pin
#realJSOP5-Feb-10 22:05
mve#realJSOP5-Feb-10 22:05 
You can't change the return values of framework object methods (and indeed, you don't want to) . In your own object methods, you can use StringBuilder internally if necessary, but unless you have a very specific reason for doing so, there's really no reason to return a StringBuilder object.

A StringBuilder is a more efficient object when frequent changes to a given string are made, but it saves you nothing as a return value unless the method being returned to is also going to heavily modify the returned value.

If you're concerned with memory usage, buy a memory profiler, and run your app for a few days to see if this is indeed something that even needs to be considered. You may find that your efforts are best concentrated elsewhere in the code.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

QuestionHow to populate textbox by database Pin
scottichrosaviakosmos5-Feb-10 20:00
scottichrosaviakosmos5-Feb-10 20:00 
AnswerRe: How to populate textbox by database Pin
Chetan Patel5-Feb-10 21:59
Chetan Patel5-Feb-10 21:59 
GeneralRe: How to populate textbox by database Pin
Md. Marufuzzaman6-Feb-10 1:14
professionalMd. Marufuzzaman6-Feb-10 1:14 
QuestionCan anybody help me in below code Pin
indian1435-Feb-10 13:15
indian1435-Feb-10 13:15 
AnswerRe: Can anybody help me in below code Pin
Abhinav S5-Feb-10 13:21
Abhinav S5-Feb-10 13:21 
GeneralRe: Can anybody help me in below code Pin
indian1435-Feb-10 13:35
indian1435-Feb-10 13:35 
AnswerRe: Can anybody help me in below code Pin
Jimmanuel5-Feb-10 14:42
Jimmanuel5-Feb-10 14:42 

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.