1.

Why to perform Interning of Strings in C#?

Answer»

To PERFORM Interning of strings, use the Intern() method. Use interning to OPTIMIZE application’s MEMORY. The common language RUNTIME conserves string storage by maintaining a table, called the intern pool.

The intern() method retrieves the reference to the particular string. The SEARCH for a string equal to the particular String is done in Intern Pool.



Discussion

No Comment Found