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)
Type Parameters
Name | Description |
---|---|
T | The type of item. |
Parameters
Name | Type | Description |
---|---|---|
source | IEnumerable |
The items. |
values | IEnumerable |
The values. |
Return Value
Type | Description |
---|---|
bool | true if the items starts with all the specified values, false otherwise. |