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
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
cs0672-4.cs
blob
c9aaebc5d1beca5ea11c1b7dcbfe96faac522e30
1
// CS0672: Member `B.MyEvent' overrides obsolete member `A.MyEvent'. Add the Obsolete attribute to `B.MyEvent'
2
// Line: 13
3
// Compiler options: -warnaserror
4
5
using
System
;
6
7
class
A
{
8
[
Obsolete
]
9
public virtual event
EventHandler MyEvent
;
10
}
11
12
class
B
:
A
{
13
public override event
EventHandler MyEvent
;
14
}