NotNull<T>(T, string) Method

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
NullableContextAttribute

Type Parameters

Name Description
T

Parameters

Name Type Description
value T
name string

Return Value

Type Description
T