>>Actually, there is
http://msdn.microsoft.com/en-us/library/fyx7s61s.aspx>>
>>
>>string xx = sb.ToString(startIndex, length);
>>
>>
>>You can even make an extension method
>>
>>
>>But why do you need that many mid's ?
>
>Ah, thanks for the answer, I will make sure that try that out later on today. I didn't think of that approach.
>
>As for the occurences of Mid(), this is in regards to the parser being used here. I discovered something yesterday where I had to optimize a few things. I did most of it. But, in order to obtain the result in a flash, I still have that Mid() line to optimize.
I wonder whether there's another approach to your method that does not involve creating that many objects (mid/substr). Perhaps there is
Gregory