Summary
Prepends prefix to input when the value is non-empty; returns the original value otherwise.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Extensions - Containing Type
- StringExtensions
Syntax
public static string WithPrefixIfNotNullOrEmpty(this string input, string prefix)
Parameters
| Name | Type | Description |
|---|---|---|
| input | string | |
| prefix | string |
Return Value
| Type | Description |
|---|---|
| string |