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
Add support for Windows x64 Full AOT + LLVM + Interpreter on CI. (#15276)
[mono-project.git]
/
mcs
/
tests
/
gtest-006.cs
blob
5985fa6da29981edbe5d32263bc998ec3246f12d
1
// Using an array of a type parameter.
2
3
class
Stack
<
T
>
4
{
5
int
size
;
6
T
[]
data
;
7
8
public
Stack
()
9
{
10
data
=
new
T
[
200
];
11
}
12
13
public void
Push
(
T item
)
14
{
15
data
[
size
++] =
item
;
16
}
17
18
public
T
Pop
()
19
{
20
return
data
[--
size
];
21
}
22
23
public void
Hello
(
T t
)
24
{
25
System
.
Console
.
WriteLine
(
"Hello:
{0}
"
,
t
);
26
}
27
}
28
29
class
Test
30
{
31
public static void
Main
()
32
{
33
}
34
}