Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array. at ExceptionDemo.M(Int32[] table, Int32 idx) at ExceptionDemo.Main()