Summary
Extension methods that augment
System.Collections.Generic.IEnumerable`1 and related collection types.- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Extensions - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["EnumerableExtensions"]
class Type type-node
Syntax
public static class EnumerableExtensions
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| NullableAttribute |
Methods
| Name | Value | Summary |
|---|---|---|
| AddRange |
void |
Appends all elements of items to source.
static
|
| OnlyOrDefault |
T |
Returns the single element of the sequence, or
default if the sequence is empty or contains more than one element.static
|
| SingleOfType |
T |
Returns the single element of type T from a non-generic sequence, throwing if not exactly one exists.
static
|