projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Thu May 27 15:50:52 CEST 2004 Paolo Molaro <lupus@ximian.com>
[mono.git]
/
mono
/
tests
/
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