Optimizating Concatenation

Mehyar

Junior Contributor
Joined
Jun 9, 2003
Messages
371
Location
Lebanon
Man. once you get in to the depth of optimizing code you get obsessed.

Anyone knows which is better to use,

String.Concat()
or
Simply the & operator
to concatinate strings...
 
For large strings using a StringBuilder rather than String.Concat or & operator.
As far as I'm aware the & and String.Concat compile down to the same instructions anyway.
 
Back
Top