| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.Linq; |
| | 4 | | using System.Text; |
| | 5 | | using System.Threading.Tasks; |
| | 6 | |
|
| | 7 | | namespace OpenCoverTest2 |
| | 8 | | { |
| | 9 | | class Program |
| | 10 | | { |
| | 11 | | static void Main(string[] args) |
| 2 | 12 | | { |
| 2 | 13 | | if (args.Length > 0) |
| 2 | 14 | | { |
| | 15 | | try |
| 2 | 16 | | { |
| 2 | 17 | | int index = Int32.Parse(args[0]); |
| 2 | 18 | | Console.WriteLine(Class1.GetString(index)); |
| 2 | 19 | | } |
| 0 | 20 | | catch (FormatException) |
| 0 | 21 | | { |
| 0 | 22 | | Console.WriteLine("{0}: Bad Format", args[0]); |
| 0 | 23 | | } |
| 0 | 24 | | catch (OverflowException) |
| 0 | 25 | | { |
| 0 | 26 | | Console.WriteLine("{0}: Overflow", args[0]); |
| 0 | 27 | | } |
| 2 | 28 | | } |
| 2 | 29 | | } |
| | 30 | | } |
| | 31 | | } |