The method takes a string parameter, enclosed in quotes, and a code block.
该方法具有一个使用引号括起来的字符串参数和一个代码块。
Finally, the string type is a reference type, so every string instance refers to an additional block of memory to hold the actual string data.
最后,字符串类型是引用类型,因此每个字符串实例都引用一个附加的内存块,以存放实际的字符串数据。
This results in the largest possible block of free space, but also tends to move objects that are closely related (for example, a String and its char data) into nearby memory locations.
这会导致闲置空间块变得尽可能的大,但也可能会将关系密切的对象(例如string及其char数据)移动到临近的内存位置。
应用推荐