obislavu - you're right - I'm so used to 32-bit systems where you'd have a 2gb limit. Since .NET is 64 bit aware, strings can essentially be as large as you have swap space available.
Chip H.
If you want to get the best response to a question, please check out FAQ222-2244 first
However, because the string cannot change size once it is allocated, it is better to use a System.Text.StringBuilder if you want to concatenate or play around with the string. Allocation of a StringBuilder object is dynamic and much more performant.
Thanks to everybody for the quick responses. I am relatively new to .NET and C# but am learning. I will be sure to use StringBuilder if I have to concantenate strings. Thanks again to everybody.
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.