نقل قول: معایب stringbuilder
کسی در مورد معایب string builder مطلبی نداره؟ فکر میکنم مفید باشه. بالاخره جا هایی هم وجود داره که string builder مفید نیست
نقل قول: معایب stringbuilder
The performance of a concatenation operation for a String or StringBuilder object depends on the frequency of memory allocations. A String concatenation operation always allocates memory, whereas a StringBuilder concatenation operation allocates memory only if the StringBuilder object buffer is too small to accommodate the new data. Use the String class if you are concatenating a fixed number of String objects. In that case, the compiler may even combine individual concatenation operations into a single operation. Use a StringBuilder object if you are concatenating an arbitrary number of strings; for example, if you're using a loop to concatenate a random number of strings of user input.
این از msdn آوردم اما کافی نیست منتظر نظرات تکمیلی دوستان هستم