Mono Class Library: System.String Overview | Members

System.String.IndexOf Method

Returns the index of the first occurrence of a specified Unicode character in the current instance.

public int IndexOf (char value)

Parameters

value
A Unicode character.

Returns

A int containing the zero-based index of the first occurrence of value character in the current instance; otherwise, -1 if value was not found.

Remarks

This method is case-sensitive.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0