If you're going to be looping through a lot of records, I'd use constants for those string literals, use String.Empty for the zero-length strings, and use the StringBuilder class to do the replaces.
It could get you a noticeable performance increase.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.