StringExtensions.

WithPrefixIfNotNullOrEmpty(string, string) Method

Summary

Prepends prefix to value when the value is non-empty; returns the original value otherwise.
Namespace
GitVersion.Extensions
Containing Type
StringExtensions

Syntax

public static string WithPrefixIfNotNullOrEmpty(this string value, string prefix)

Parameters

Name Type Description
value string
prefix string

Return Value

Type Description
string
GitHub