Working with long strings and found this problem. Any advice?
I have an instance where a string builder's Capacity is 1024 and Length is 992.
I am .Append() a string that has a .Length property of 1024.
After .Append() is called, the .ToString() method returns a long "\0\0\0" string.
What is going on? 0.o
If I create a new StringBuilder object and then append, I get what I expect. So the string "should" be ok right?
(I am clearing the stringbuilder out by doing the .Remove(0, LengthofSB) trick).
Any ideas?