c# string size limit? length of string limit?

c# string size limit? length of string limit?

Post by Danie » Thu, 20 Apr 2006 09:38:38


c# string size limit? length of string limit?
 
 
 

c# string size limit? length of string limit?

Post by Carl Danie » Thu, 20 Apr 2006 12:53:09


All allocations in .NET are limited to 4GB in size, even on 64 bit
platforms. .NET strings store 16-bit Unicode (UCS-2) characters, so that's
2^31 characters, more or less. Of course, you'll probably run out of memory
long before then.

-cd