Click or drag to resize
InExtensionInT Method
Provides functionality to check if value contains in the collection.

Namespace: LiteRepository
Assembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntax
C#
public static bool In<T>(
	this T value,
	params T[] values
)

Parameters

value
Type: T
Current value.
values
Type: T
Collection of values.

Type Parameters

T
Type of value.

Return Value

Type: Boolean
true if value contains in the values; 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