This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Incubator.
Summary
Checks if the source is contained in a list
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator . Enumerable Extensions - Containing Type
- EnumerableExtensions
Syntax
public static bool IsIn<T>(this T source, params T[] list)
Type Parameters
Name | Description |
---|---|
T | The source and list type |
Parameters
Name | Type | Description |
---|---|---|
source | T | The source item |
list | T[] | The list of items to check |
Return Value
Type | Description |
---|---|
bool | True if found, false if not |