[Mono-devel-list] System.String::Intern()

Chris Seaton chris at chrisseaton.com
Sun Sep 14 08:10:32 EDT 2003


The System.String::Intern() method confuses me so much my brain hurts.
This function gets a reference to a string in the intern pool. All
unique strings exist once in the intern pool, saving memory. However, to
call the Intern function, one of the parameters is a string, and because
all strings are in the intern pool, the parameter must be in the intern
pool, so what is the point in calling the function?
-- 
Chris Seaton

chris at chrisseaton.com
http://www.chrisseaton.com/




More information about the Mono-devel-list mailing list