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
remove NotWorking
[mcs.git]
/
tests
/
gtest-041.cs
blob
1f778a5264185084b4868e6f14b1204f395f6d0a
1
// We may use type parameters as `params' type.
2
3
class
Stack
<
T
>
4
{
5
public void
Hello
(
int
a
,
params
T
[]
args
)
6
{ }
7
}
8
9
class
X
10
{
11
static void
Main
()
12
{
13
Stack
<
string
>
stack
=
new
Stack
<
string
> ();
14
stack
.
Hello
(
1
,
"Hello"
,
"World"
);
15
}
16
}