EnumerableExtensions Class

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<T>(ICollection<T>, IEnumerable<T>) void
Appends all elements of items to source.
static
OnlyOrDefault<T>(IEnumerable<T>) T
Returns the single element of the sequence, or default if the sequence is empty or contains more than one element.
static
SingleOfType<T>(IEnumerable) T
Returns the single element of type T from a non-generic sequence, throwing if not exactly one exists.
static
GitHub