Summary
Throws
System.ArgumentNullException when value is null; otherwise returns the value.- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Extensions - Containing Type
- CommonExtensions
Syntax
public static T NotNull<T>(this T value, string name = "") where T : class
Attributes
| Type | Description |
|---|---|
| Nullable |
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| value | T | |
| name | string |
Return Value
| Type | Description |
|---|---|
| T |