using System; class ExException { public static void Main() { try { int [] tableauTest = new int [10]; tableauTest[10] = 123; // Exception } catch(IndexOutOfRangeException err) { Console.WriteLine("Erreur: "+err); } } } |
0
using System; class ExException { public static void Main() { try { int [] tableauTest = new int [10]; tableauTest[10] = 123; // Exception } catch(IndexOutOfRangeException err) { Console.WriteLine("Erreur: "+err); } } } |
No comments yet.