© { JSL }
6
indexer
·
string
has a readonly indexer
w
integer index is always bounds checked
w
throws ArgumentOutOfRangeException
static void
Func(
string
s)
{
for
(
int
i = 0; i != s.Length; i++)
{
char
c = s[i];
Console.Write(c);
}
}