EnumerableExtensions.

IsIn<T>(T, T[]) Method

Summary

Checks if the source is contained in a list

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