Maximum .NET String Length
Posted: 11/2/2005 8:16:29 AM
By: Comfortably Anonymous
Times Read: 2,454
0 Dislikes: 0
Topic: Programming: .NET Framework
A string can contain up to approximately 2 billion (2 ^ 31) Unicode characters.

Unicode characters are 16 bits each, so String variables are stored as sequences of unsigned 16-bit (2-byte) numbers ranging in value from 0 through 65535. Each number represents a single Unicode character.
Rating: (You must be logged in to vote)