NotNullOrEmpty(string, string) Method

Summary

Throws System.ArgumentException when value is null or empty; otherwise returns the value.
Assembly
GitVersion.Core.dll
Namespace
GitVersion.Extensions
Containing Type
StringExtensions

Syntax

public static string NotNullOrEmpty(this string value, string name = "")

Parameters

Name Type Description
value string
name string

Return Value

Type Description
string