Search code examples
c#stringappdomain

Scope of string in appdomain


I know string are immutable, but which scope does this immutable (cached?!) string has? Is it scoped per Appdomain or is the scope bigger (system)? Thanks.


Solution

  • According to the documantation, the intern-table for strings is CLR-Scoped, so, strings can even outlive your assembly.