EnumerableExtensions.

SingleOfType<T>(IEnumerable) Method

Summary

Returns the single element of type T from a non-generic sequence, throwing if not exactly one exists.
Namespace
GitVersion.Extensions
Containing Type
EnumerableExtensions

Syntax

public static T SingleOfType<T>(this IEnumerable source)

Type Parameters

Name Description
T

Parameters

Name Type Description
source IEnumerable

Return Value

Type Description
T
GitHub