title: What is the maximum possible length of a .NET string?
body: <p>What is the longest string that can be created in .NET? The docs for the <code>String</code> class are silent on this question as far as I can see, so an authoritative answer might require some knowledge of internals. Would the maximum change on a 64-bit system?</p>
  
  <p>[This is asked more for curiosity than for practical use - I don't intend to create any code that uses gigantic strings!]</p>