List<T>.IList.Contains(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the IList contains a specific value.
virtual bool System.Collections.IList.Contains(System::Object ^ item) = System::Collections::IList::Contains;
bool IList.Contains (object item);
abstract member System.Collections.IList.Contains : obj -> bool
override this.System.Collections.IList.Contains : obj -> bool
Function Contains (item As Object) As Boolean Implements IList.Contains
Parameters
Returns
true
if item
is found in the IList; otherwise, false
.
Implements
Remarks
This method determines equality using the default equality comparer EqualityComparer<T>.Default for T
, the type of values in the list.
This method performs a linear search; therefore, this method is an O(n) operation, where n is Count.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.