Javatpoint Logo
Javatpoint Logo

C# String LastIndexOfAny()

The C# LastIndexOfAny() method is used to find index position of the last occurrence of one or more characters specified in this string.

Signature

Parameter

ch: it is a character type array.

Return

It returns integer value.


C# String LastIndexOfAny() Method Example

Output:

9

C# String LastIndexOfAny() Method Example 2

Output:

8




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA