repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2004-03-01 Larry Ewing <lewing@ximian.com>
[mono-project.git]
/
mcs
/
tests
/
gen-6.cs
blob
6c53bda718e84c778ab9349b66497aad1ecd8788
1
class
Stack
<
T
>
2
{
3
int
size
;
4
T
[]
data
;
5
6
public
Stack
()
7
{
8
data
=
new
T
[
200
];
9
}
10
11
public void
Push
(
T item
)
12
{
13
data
[
size
++] =
item
;
14
}
15
16
public
T
Pop
()
17
{
18
return
data
[--
size
];
19
}
20
21
public void
Hello
(
T t
)
22
{
23
System
.
Console
.
WriteLine
(
"Hello:
{0}
"
,
t
);
24
}
25
}
26
27
class
Test
28
{
29
static void
Main
()
30
{
31
}
32
}