StringSegmentTrim(Char) Method

Removes all leading and trailing instances of a character from the current StringSegment.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public StringSegment Trim(
	char trimChar
)

Parameters

trimChar  Char
The character to remove.

Return Value

StringSegment
A StringSegment that represents the string that remains after all instances of the trimChar character are removed from the start and end of the current StringSegment.

See Also