语言

IImmutableList<T>.Clear 方法

定义

创建一个列表,其中包含删除的所有项,但排序和排序语义与此列表相同。

public:
 System::Collections::Immutable::IImmutableList<T> ^ Clear();
public System.Collections.Immutable.IImmutableList<T> Clear();
abstract member Clear : unit -> System.Collections.Immutable.IImmutableList<'T>
Public Function Clear () As IImmutableList(Of T)

返回

一个空列表,其排序和排序语义与此实例相同。

适用于