Click or drag to resize

StringUtils.ChopEnd Method

Chop the specified number of characters off the end of the string (if the string is at least that long). The original string is unmodified and the modified string is returned.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static string ChopEnd(
	string s,
	int charsToChop
)

Parameters

s
Type: System.String
The string to chop.
charsToChop
Type: System.Int32
The number of character to chop off.

Return Value

Type: String
The chopped string.
See Also