Class EnumerableExtensions
Inheritance
object
EnumerableExtensions
Namespace: Xrpl.Client.Extensions
Assembly: Xrpl.dll
Syntax
public static class EnumerableExtensions
Methods
| Edit this page View SourceContainsElement<T>(IEnumerable<T>, Func<T, bool>)
Check collection if contains element
Declaration
public static bool ContainsElement<T>(this IEnumerable<T> collection, Func<T, bool> selector)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | collection | current collection |
| Func<T, bool> | selector | function to check collection |
Returns
| Type | Description |
|---|---|
| bool | true, if predicate one of of collection element is true |
Type Parameters
| Name | Description |
|---|---|
| T | element type |