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. [Edit]

public int IndexOf (char value)

Parameters

value
A Unicode character. [Edit]

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. [Edit]

Remarks

This method is case-sensitive. [Edit]

Requirements

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