projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-07-24 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
gtest-096.cs
1
using System;
2
3
class Foo<T>
4
{ }
5
6
class Test
7
{
8
static void Hello<T> (Foo<T>[] foo, int i)
9
{
10
Foo<T> element = foo [0];
11
Console.WriteLine (element);
12
if (i > 0)
13
Hello<T> (foo, i - 1);
14
}
15
16
public static void Quicksort<U> (Foo<U>[] arr)
17
{
18
Hello<U> (arr, 1);
19
}
20
21
static void Main ()
22
{
23
Foo<int>[] foo = new Foo<int> [1];
24
foo [0] = new Foo<int> ();
25
Quicksort (foo);
26
}
27
}