projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
beb0079718d625ce1d8f5a5f4576c3f10ab842d9
[mono.git]
/
decimal-array.cs
1
using System;
2
3
class Test
4
{
5
public static int Main()
6
{
7
decimal[,] tab = new decimal[2,2] {{3,4},{5,6}};
8
bool b1 = false;
9
decimal d;
10
11
try {
12
d = tab[1,2];
13
} catch (Exception e) {
14
b1 = true;
15
}
16
17
if (!b1)
18
return 1;
19
20
d = tab[1,1];
21
if (d != 6)
22
return 1;
23
24
return 0;
25
}
26
}
27
28