The CLR maintains a table called the intern pool that contains the literal strings in a program.
CLR维护一个名为“Intern pool”的表,该表包含程序中的文字字符串。
The System.String class provides an Intern method that ensures a string is in the intern pool and returns the reference to it.
String类提供了Intern方法,以确保字符串位于“Intern pool”中,并且返回对它的引用。
The System.String class provides an Intern method that ensures a string is in the intern pool and returns the reference to it.
String类提供了Intern方法,以确保字符串位于“Intern pool”中,并且返回对它的引用。
应用推荐