Awesome
StringBuilderTemporary
Read this in other languages: English, 日本語<br />
<pre> Concatenating many strings allocates much teporary memory in Managed Heap. It is better to use "System.Text.StringBuffer". But it was heavy task to fix it,if you have already written many code. So we prepare this to fix that case easily. To use this , you put this on the top of code. ------ using StrOpe = StringOperationUtil.OptimizedStringOperation; ------ ---- before code string str = "aaa" + 20 + "bbbb"; after code string str = StrOpe.i + "aaa" + 20 + "bbbb"; ---- You only have to put "StrOpe.i" before string concat operation. ( Internal , "StrOpe.i" uses StringBuilder class. We implement it by overriding "operator +" and implicit cast.) "StrOpe.i" reuse same object. You can use "StrOpe.small" / "StrOpe.medium" / "StrOpe.large" instead of "StrOpe.i". These are creating instance. So it is "Thread safe".</pre>