.NET string max length?

  • Thread starter Thread starter phoenix
  • Start date Start date
P

phoenix

The Length property returns an int, so the maximum length of a string is
Int32.MaxValue (2,147,483,647) characters. Practically this will probably
mean that you can make your string as long as you have memory available to
put it in.

Yves
 
Is there an official max length for the string (System.String) class?

Thanks!

Derrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top