StringPathExtensions.

WithEnding(string, string) Method

Summary

Returns value with the minimal concatenation of ending (starting from end) that results in satisfying .EndsWith(ending).
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Containing Type
StringPathExtensions

Syntax

public static string WithEnding(this string value, string ending)

Examples

"hel".WithEnding("llo") returns "hello", which is the result of "hel" + "lo".

Parameters

Name Type Description
value string String to which ending should be added.
ending string String which should be added to value.

Return Value

Type Description
string value with the minimal concatenation of ending.