Returns the first index of any of the specified characters in the string segment.
public int IndexOfAny(params char[] anyOf)
parameter | description |
---|---|
anyOf | The characters to find. |
The first index of any of the specified characters in the string segment, or -1 if none of the characters cannot be found.