ArrayUtilContainsT Method |
Check if an array contains the specified item.
Namespace:
Nova.Utilities
Assembly:
Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax public static bool Contains<T>(
this T[] thisArray,
T item
)
Parameters
- thisArray
- Type: T
The array being searched. - item
- Type: T
The item being searched for.
Type Parameters
- T
- The type of the items in the array.
Return Value
Type:
BooleanTrue if the array contains the item, otherwise false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also