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
[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git]
/
mcs
/
tests
/
gtest-029.cs
blob
d52eee7ffa13210a6ed5ce4f935226f1c16bc8c7
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
public static void
Main
()
21
{
22
Stack
<
int
>
stack
=
new
Stack
<
int
> (
5
);
23
System
.
Console
.
WriteLine
(
stack
.
Test
());
24
}
25
}