Home » C# String LastIndexOfAny() method

C# String LastIndexOfAny() method

by Online Tutorials Library

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 

You may also like