Open
Description
To reset a List to its initial state, call the Clear method before calling the TrimExcess method. Trimming an empty List sets the capacity of the List to the default capacity.
若要将 重置 List 为其初始状态,请在 Clear 调用 方法之前调用 TrimExcess 方法。 剪裁空 List 会将 的 List 容量设置为默认容量。
一样嘛?
Metadata
Metadata
Assignees
Labels
Indicates issues/PRs that are low priorityIndicates issues/PRs that are low priorityProblem with the content; needs to be fixedProblem with the content; needs to be fixedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner