Class EnumerableExtensions
IEnumerable extension methods
Inherited Members
Namespace: PayrollEngine.Client.Scripting
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public static class EnumerableExtensions
Methods
View SourceContainsAll<T>(IEnumerable<T>, IEnumerable<T>)
Test if all items are included
Declaration
public static bool ContainsAll<T>(this IEnumerable<T> source, IEnumerable<T> test)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | source | |
| IEnumerable<T> | test | The collection with the test items |
Returns
| Type | Description |
|---|---|
| bool | True if all items of the test items are available in the source |
Type Parameters
| Name | Description |
|---|---|
| T |
ContainsAny<T>(IEnumerable<T>, IEnumerable<T>)
Test if any item is included
Declaration
public static bool ContainsAny<T>(this IEnumerable<T> source, IEnumerable<T> test)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | source | |
| IEnumerable<T> | test | The collection with the test items |
Returns
| Type | Description |
|---|---|
| bool | True if any item of the test items is available in the source |
Type Parameters
| Name | Description |
|---|---|
| T |