Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does c# string have a length limit [duplicate]

Tags:

c#

.net

Possible Duplicate:
What is the maximum possible length of a .NET string?

Is there limit for a C# string to hold data?

like image 793
user496949 Avatar asked Dec 20 '10 01:12

user496949


1 Answers

Strings cannot have more than 231 characters, since String.Length is a 32-bit integer.

They're also limited by available memory.

like image 142
SLaks Avatar answered Oct 03 '22 23:10

SLaks