Determines whether the items starts with the specified values.
- Namespace
- Statiq
.Common - Containing Type
- I
Enumerable Extensions
Syntax
public static bool StartsWith<T>(this IEnumerable<T> source, IEnumerable<T> values, IEqualityComparer<T> comparer)
Type Parameters
| Name | Description |
|---|---|
| T | The type of item. |
Parameters
| Name | Type | Description |
|---|---|---|
| source | IEnumerable |
The items. |
| values | IEnumerable |
The values. |
| comparer | IEqualityComparer |
The comparer to use. |
Return Value
| Type | Description |
|---|---|
| bool | true if the items starts with all the specified values, false otherwise. |