// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; public class MainClass { public static void Main(string[] args) { int[] a = new int[1000]; int[] b = new int[1000]; for(int i = 0; i < a.Length; i++) { a[i] = i; } for(int i = 0; i < b.Length; i++) { b[i] = a[i] + 1; } foreach(int bv in b) { if(bv <= 0) throw new Exception("Ooops"); } Console.WriteLine(b[77]); } }