repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
bring Mono Security to monotouch
[mcs.git]
/
tests
/
gtest-029.cs
blob
6194603a4fb9e673840e875b42a5ea91c771c900
1
class
Stack
<
T
>
2
{
3
T
[]
t
;
4
5
public
Stack
(
int
n
)
6
{
7
t
=
new
T
[
n
];
8
}
9
10
public object
Test
()
11
{
12
// Boxing the type parameter to an object; note that we're
13
// an array !
14
return
t
;
15
}
16
}
17
18
class
X
19
{
20
static void
Main
()
21
{
22
Stack
<
int
>
stack
=
new
Stack
<
int
> (
5
);
23
System
.
Console
.
WriteLine
(
stack
.
Test
());
24
}
25
}