projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
copied mono-api-diff.cs from mono-2-2 branch so new patch can be applied and history...
[mono.git]
/
mcs
/
tests
/
gtest-lambda-12.cs
1
2
3
using System;
4
5
public delegate void Func<TA> (TA arg0);
6
7
class Demo
8
{
9
static void F<T> (T[] values, T value, Func<T> f)
10
{
11
Console.WriteLine (values [0]);
12
f (value);
13
Console.WriteLine (values [0]);
14
}
15
16
static int Main ()
17
{
18
int[] a = new int [] { 10 };
19
F (a, 5, i => a [0] = i);
20
21
if (a [0] != 5)
22
return 1;
23
24
return 0;
25
}
26
}