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
2009-07-20 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs1533.cs
blob
41809e44de88fcd97940a11764d7d79748d6a6cf
1
// CS1533: Invoke cannot be called directly on a delegate
2
// Line : 11
3
// Compiler options: -langversion:ISO-1
4
5
public class
TestClass
6
{
7
delegate void
OneDelegate
(
int
i
);
8
9
static void
Main
()
10
{
11
OneDelegate d
=
new
OneDelegate
(
TestMethod
);
12
d
.
Invoke
(
1
);
13
}
14
public static void
TestMethod
(
int
i
)
15
{
16
}
17
}