Share via


String.IsInterned Method

Retrieves a reference to a specified String object.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static string IsInterned (
         stringstr
)

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, and 4.1.

See Also

Reference

String Class
String Members
System Namespace