Strings in .NET

  • sequential collection of chars
  • immutable
  • max 2GB or about 1 billion characters
  • reference type
  • are interned – CLR saves memory by maintaining a table, called the “intern pool”, that contains a single reference to each unique literal string declared or created programmatically in your program.

Further read:

One Reply to “Strings in .NET”

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
17 + 23 =