Click here to Skip to main content
15,905,867 members
Home / Discussions / C#
   

C#

 
GeneralRe: Data Link Property Pin
BinhTran9-Nov-03 17:58
BinhTran9-Nov-03 17:58 
GeneralRe: Data Link Property Pin
Husein22-Nov-03 0:21
Husein22-Nov-03 0:21 
QuestionHow can I overdraw the titlebar? Pin
icysky9-Nov-03 13:44
icysky9-Nov-03 13:44 
QuestionWhen exactly should a StringBuilder be used? Pin
gicio9-Nov-03 10:48
gicio9-Nov-03 10:48 
AnswerRe: When exactly should a StringBuilder be used? Pin
J. Dunlap9-Nov-03 11:11
J. Dunlap9-Nov-03 11:11 
AnswerRe: When exactly should a StringBuilder be used? Pin
Nick Parker9-Nov-03 11:17
protectorNick Parker9-Nov-03 11:17 
AnswerRe: When exactly should a StringBuilder be used? Pin
Colin Angus Mackay9-Nov-03 13:59
Colin Angus Mackay9-Nov-03 13:59 
Generalone simple way to look at it Pin
CillyMe10-Nov-03 5:49
CillyMe10-Nov-03 5:49 
Here's one small fragment:

using System;
using System.Text;

namespace StringVsStringBuilder
{

class Class1
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine("Playing with String");
string sName = "Jackarse";
sName = "Paul III"; //You actually get a new string (new memory slot).
Console.WriteLine("Before replace (string): " + sName);
sName.Replace("III", "IX");
Console.WriteLine("After replace (string): " + sName);
Console.WriteLine("String.Replace(..) " + sName.Replace("III", "V"));

Console.WriteLine();

Console.WriteLine("Playing with StringBuilder");
StringBuilder sbName = new StringBuilder("Timothy III");
Console.WriteLine("Before replace (StringBuilder): " + sbName);
sbName.Replace("III", "IX");
Console.WriteLine("After replace (StringBuilder): " + sbName);

return;

}
}
}

There're also other things you need to know about String Vs StringBuilder when you do PInvoke. But, one step at a time.
AnswerRe: When exactly should a StringBuilder be used? Pin
LongRange.Shooter10-Nov-03 6:17
LongRange.Shooter10-Nov-03 6:17 
Generaltemp monitor from motherboard Pin
Rob Tomson9-Nov-03 9:38
Rob Tomson9-Nov-03 9:38 
GeneralRe: temp monitor from motherboard Pin
Nick Parker9-Nov-03 10:21
protectorNick Parker9-Nov-03 10:21 
GeneralRe: temp monitor from motherboard Pin
Rob Tomson10-Nov-03 4:07
Rob Tomson10-Nov-03 4:07 
GeneralDataAccess Control Pin
Inam9-Nov-03 7:38
Inam9-Nov-03 7:38 
GeneralAdding value to registry... Pin
Amirjalaly9-Nov-03 6:38
Amirjalaly9-Nov-03 6:38 
GeneralRe: Adding value to registry... Pin
Corinna John9-Nov-03 8:05
Corinna John9-Nov-03 8:05 
GeneralRe: Adding value to registry... Pin
Anonymous10-Nov-03 2:50
Anonymous10-Nov-03 2:50 
GeneralRe: Adding value to registry... Pin
Corinna John10-Nov-03 3:01
Corinna John10-Nov-03 3:01 
GeneralRe: Adding value to registry... Pin
Braulio Dez9-Nov-03 21:44
Braulio Dez9-Nov-03 21:44 
GeneralRe: Adding value to registry... Pin
Alvaro Mendez10-Nov-03 8:43
Alvaro Mendez10-Nov-03 8:43 
QuestionWhat book do i need? Pin
eggie59-Nov-03 6:02
eggie59-Nov-03 6:02 
AnswerRe: What book do i need? Pin
eggie59-Nov-03 6:10
eggie59-Nov-03 6:10 
AnswerRe: What book do i need? Pin
Nick Parker9-Nov-03 6:19
protectorNick Parker9-Nov-03 6:19 
AnswerRe: What book do i need? Pin
Vasudevan Deepak Kumar9-Nov-03 20:44
Vasudevan Deepak Kumar9-Nov-03 20:44 
QuestionHow to tell if computer is signed on Pin
mcgahanfl9-Nov-03 2:36
mcgahanfl9-Nov-03 2:36 
AnswerRe: How to tell if computer is signed on Pin
Corinna John9-Nov-03 8:14
Corinna John9-Nov-03 8:14 

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.