Throw Index Out Of Range Exception : Buildin Exceptions « Development Class « C# / C Sharp
- C# / C Sharp
- Development Class
- Buildin Exceptions
Throw Index Out Of Range Exception
using System;
using System.Collections;
class Class1 {
static void Main(string[] args) {
long[] longException = new long[2];
try {
longException[2] = 5;
}
catch (Exception objE) {
Console.WriteLine(objE.ToString());
}
}
}
Related examples in the same category