Class IEnumerableExtensions
Namespace: Aurigma.DesignAtoms.ExtensionMethods
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public static class IEnumerableExtensions
Inheritance: System.Object -> IEnumerableExtensions
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Methods
SliceWhile<T>
public static IEnumerable<T> SliceWhile<T>(this IEnumerable<T> collection, Func<T, bool> include, bool includeThreshold = false)
Parameters
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.IEnumerable<<T>> | collection | |
System.Func<<T>,System.Boolean> | include | |
System.Boolean | includeThreshold |
Returns
System.Collections.Generic.IEnumerable<<T>>
Empty<T>
public static bool Empty<T>(this IEnumerable<T> source)
Parameters
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.IEnumerable<<T>> | source |
Returns
System.Boolean
ForEach<T>
public static void ForEach<T>(this IEnumerable<T> source, Action<T> action)
Parameters
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.IEnumerable<<T>> | source | |
System.Action<<T>> | action |
SequenceEqualNullable<T>
public static bool SequenceEqualNullable<T>(this IEnumerable<T> first, IEnumerable<T> second)
Parameters
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.IEnumerable<<T>> | first | |
System.Collections.Generic.IEnumerable<<T>> | second |
Returns
System.Boolean