Extensions.

NotNull<T>(T, string) Method

Summary

Throws an exception if the specified parameter's value is null.
Assembly
Cake.Ftp.dll
Namespace
Cake.Ftp
Containing Type
Extensions

Syntax

public static void NotNull<T>(this T value, string parameterName) where T : class

Type Parameters

Name Description
T The type of the parameter.

Parameters

Name Type Description
value T The value of the argument.
parameterName string The name of the parameter to include in any thrown exception.

Return Value

Type Description
void