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
2007-03-28 Chris Toshok <toshok@ximian.com>
[mono-project.git]
/
mcs
/
errors
/
gcs1728.cs
blob
97e96603f2c75ac216c594998bba6d52de868f92
1
// CS1728: Cannot use method `int?.GetValueOrDefault()' as delegate creation expression because it is member of Nullable type
2
// Line: 14
3
4
using
System
;
5
6
class
C
7
{
8
delegate int
Test
();
9
event
Test MyEvent
;
10
11
void
Error
()
12
{
13
int
?
i
=
0
;
14
MyEvent
+=
new
Test
(
i
.
GetValueOrDefault
);
15
}
16
}