Could use a little advice, or possibly just reassurance! I strongly suspect that I am murdering .NET (not that I really care about .NET, you understand) and could do with some other opinions on whether what I'm doing is actually that bad, and whether I'm missing an obvious way to do it better.
I'm in the middle of writing some code that requires a nice hefty dynamic string, built in numerous stages, each stage having a number of dynamic elements. The former element of this would suggest use of a StringBuilder, and the later would suggest use of String.Format. So, that's what I'm doing:But something about it just seems wrong (apart from the fact that I'm working with Microsoft technologies, which is something I still haven't quite gotten used toCode:sb.Append(String.Format(.....)); // * many!). So, is my code a travesty, or am I just being paranoid?


LinkBack URL
About LinkBacks
) and could do with some other opinions on whether what I'm doing is actually that bad, and whether I'm missing an obvious way to do it better.
Reply With Quote

