StringBuilder SB = new StringBuilder(); int i=1; while (i != 30000) { SB.Append("Hi"+i.ToString()); SB.Append(" blah blahblah blahblah blahblah blahblah blahblah blah "); i++; }and in VB:
Dim SB = New System.Text.StringBuilder() Dim i For i = 1 To 30000 SB.Append("Hi" + i.ToString()) SB.Append(" blah blahblah blahblah blahblah blahblah blahblah blah ") NextAs I´m not a VBer, and I´m just starting study C#, I don´t know if that´s the correct way of doing things... anyway, for what people are saying, such code must have similar performance... but, that wasn´t what I saw.