StringSegmentSubstring(Int32, Int32) Method

Gets a StringSegment instance, which represents a substring of the current instance with the specified startIndex and length.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public StringSegment Substring(
	int startIndex,
	int length
)

Parameters

startIndex  Int32
The offset that points to the first character of the returned segment.
length  Int32
The desired length of the returned segment.

Return Value

StringSegment
The subsegment of the current StringSegment instance with the specified startIndex and length.

See Also