Collection<T>.IList.Remove(Object) 方法
定义
virtual void System.Collections.IList.Remove(System::Object ^ value) = System::Collections::IList::Remove;
void IList.Remove (object value);
abstract member System.Collections.IList.Remove : obj -> unit
override this.System.Collections.IList.Remove : obj -> unit
Sub Remove (value As Object) Implements IList.Remove
参数
实现
例外
注解
此方法使用默认比较器确定相等性 Comparer<T>.Default 。This method determines equality using the default comparer Comparer<T>.Default. Comparer<T>.Default 检查类型是否 T 实现 System.IComparable<T> 并使用该实现(如果可用)。Comparer<T>.Default checks whether type T implements System.IComparable<T> and uses that implementation, if available. 如果不是,则 Comparer<T>.Default 检查类型是否 T 实现 System.IComparable 。If not, Comparer<T>.Default checks whether type T implements System.IComparable. 如果类型 T 未实现任何一个接口,则此方法使用 Object.Equals 。If type T does not implement either interface, this method uses Object.Equals.
此方法是 O (n) 操作,其中 n 是 Count 。This method is an O(n) operation, where n is Count.