String.Chars Property

Gets the character at a specified index number (character position) in the current String object.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public char this [
         int index
] { get; }

Parameters

  • index
    The specified character position in the current String object.

Property Value

A Unicode character.

Remarks

The value of the index parameter is zero-based.

This property returns the character at the position specified by the index parameter. Note, however, that a particular Unicode character might be represented by more than one standard character.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

String Class
String Members
System Namespace