StringSegment.LastIndexOf(Char) Method

Definition

Reports the zero-based index position of the last occurrence of a specified Unicode character within this instance.

C#
public int LastIndexOf(char value);

Parameters

value
Char

The Unicode character to seek.

Returns

The zero-based index position of value if that character is found, or -1 if it is not.

Applies to

Produit Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)