Summary
Extension methods that augment
IEnumerable<T> and related collection
types.
- Namespace
-
GitVersion
.Extensions - Base Types
-
- object
graph BT Type-->Base0["object"]
Type["EnumerableExtensions"] class Type type-node
Syntax
public static class EnumerableExtensions
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
|