OnlyOrDefault<T>(IEnumerable<T>) Method

Syntax

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

Attributes

Type Description
NullableContextAttribute

Type Parameters

Name Description
T

Parameters

Name Type Description
source IEnumerable<T>

Return Value

Type Description
T