foreach(char c in array)
{
Console.WriteLi ne(c);
}
"Elementary Penguin" wrote:
[color=blue]
>
> is there a way to decrement a foreach loop?
>
> for example
>
> string s = "cat";
>
> foreach(char c in s)
> //some how it goes backward here
> Console.WriteLi ne(c);
>
> and so the result would be
>
> t
> a
> c
>
> --
> Texeme
> http://texeme.com
>
>[/color]
Comment