Devesprit.Scripter

Extensions..::..TrimEnd Method

Equals to string.TrimEnd method. The difference is that it can pass a string to the method instead of a character.

Namespace:  Devesprit.Scripter.Utils
Assembly:  Devesprit Scripter (in Devesprit Scripter.dll)

Syntax


public static string TrimEnd(
	this string input,
	string suffixToRemove
)
<ExtensionAttribute> _
Public Shared Function TrimEnd ( _
	input As String, _
	suffixToRemove As String _
) As String
[ExtensionAttribute]
public:
static String^ TrimEnd(
	String^ input, 
	String^ suffixToRemove
)

Parameters

input
Type: String
The input.
suffixToRemove
Type: String
The suffix to remove.

Return Value

The return value is a string.