Is this c# return statement good/bad in terms of performance?

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-03-30T07:16:23Z Indexed on 2010/03/30 7:23 UTC
Read the original article Hit count: 213

Filed under:
|
|
|

My static method returns the following concatenated string like this

return (Sb.ToString() + " " + ds.Tables[1].Rows[0].ItemArray[0].ToString() + " " + ds.Tables[2].Rows[0].ItemArray[0].ToString());

Is this a good/bad practise or should i use stringbuilder for it....

© Stack Overflow or respective owner

Related posts about c#

Related posts about return