Class EnumerableExtensions
Inheritance
System.Object
EnumerableExtensions
Namespace: Xrpl.Client.Extensions
Assembly: Xrpl.dll
Syntax
public static class EnumerableExtensions : object
Methods
| Improve this Doc View SourceContainsElement<T>(IEnumerable<T>, Func<T, Boolean>)
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, System.Boolean> | selector | function to check collection |
Returns
Type | Description |
---|---|
System.Boolean | true, if predicate one of of collection element is true |
Type Parameters
Name | Description |
---|---|
T | element type |