StringExtensions.AddLeading Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

AddLeading(string, string)

Appends a string before the text if it does not already exist.

public static string AddLeading(this string original, string append)

Parameters

original
string

Required. The string expression to append to.

append
string

The string to append.

Returns

string

A string containing the original and appended string.