String.IsInterned Method
Retrieves a reference to a specified String object.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
public static string IsInterned (
string str
)
Parameters
- str
A value that represents a specific String object.
Return Value
A reference to the specified String object if it is found in the common language runtime (CLR) intern pool; otherwise, a null reference.
Remarks
The CLR automatically maintains a table, called the "intern pool", that contains a single instance of each unique literal string constant declared in a program, as well as any unique String objects that you add programmatically.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.