Quick actions

cmd+k|ctrl+k

Navigation

Languages

modify list in iterate

Snippet info

Language

Csharp

Visibility

public

Author

hyrious

Created

2021-01-21T14:20:56Z

Updated

2021-01-21T14:22:41Z

using System;

class Program {
    static void Main(string[] args) {
        int[] a = new int[] { 1, 2, 3, 4, 5 };
        for (int i = 0; i < a.Length; ++i) {
            Console.WriteLine(a[i]);
        }
    }
}
INFO