Class EnumerableExtensions
This class contains extension methods for types implementing IEnumerable<TSource>
Inherited Members
Namespace: Swan
Syntax
public static class EnumerableExtensions
Methods
UnionExcludingNulls<TSource>(IEnumerable<TSource>, IEnumerable<TSource>)
This method returns the
Declaration
public static IEnumerable<TSource> UnionExcludingNulls<TSource>(this IEnumerable<TSource> this, IEnumerable<TSource> second)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TSource> | this | An IEnumerable<TSource> whose distinct elements forms the first set of the union. |
IEnumerable<TSource> | second | An IEnumerable<TSource> whose distinct elements forms the second set of the union. |
Returns
Type | Description |
---|---|
IEnumerable<TSource> | An |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of the input sequences. |
UnionExcludingNulls<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)
This method returns the
Declaration
public static IEnumerable<TSource> UnionExcludingNulls<TSource>(this IEnumerable<TSource> this, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TSource> | this | An IEnumerable<TSource> whose distinct elements forms the first set of the union. |
IEnumerable<TSource> | second | An IEnumerable<TSource> whose distinct elements forms the second set of the union. |
IEqualityComparer<TSource> | comparer | The IEqualityComparer<TSource> to compare values. |
Returns
Type | Description |
---|---|
IEnumerable<TSource> | An |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of the input sequences. |