- Namespace
-
GitVersion
.Extensions - Containing Type
- EnumerableExtensions
Syntax
public static T OnlyOrDefault<T>(this IEnumerable<T> source)
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| source | IEnumerable |
Return Value
| Type | Description |
|---|---|
| T |