StringExtensionsEnsureStartsWith Method

Overload List

EnsureStartsWith(String, String) Determines whether the beginning of the source string matches the specified string.

If does not, it inserts the specified string at the beginning of the source string.

EnsureStartsWith(String, String, StringComparison) Determines whether the beginning of the source string matches the specified string.

If does not, it inserts the specified string at the beginning of the source string.

See Also