ImmutableSortedSet<T>.IList.Contains(Object) 方法

定义

确定集是否包含特定值。Determines whether the set contains a specific value.

 virtual bool System.Collections.IList.Contains(System::Object ^ value) = System::Collections::IList::Contains;
bool IList.Contains (object value);
Function Contains (value As Object) As Boolean Implements IList.Contains

参数

value
Object

要在集内查找的对象。The object to locate in the set.

返回

如果在集内找到该对象,则为 true;否则为 falsetrue if the object is found in the set; otherwise, false.

实现

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 ImmutableSortedSet<T> 实例被强制转换为 IList 接口时使用。It can be used only when the ImmutableSortedSet<T> instance is cast to an IList interface.

System.object NuGet 包System.Collections.Immutable NuGet package

关于不可变集合以及如何安装About immutable collections and how to install

适用于