[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)
[mono-project.git] / mcs / errors / cs0114-2.cs
blob515d07755ee6c3190f8559a590ac842e11f2edd1
1 // CS0114: `B.MyEvent' hides inherited member `A.MyEvent'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword
2 // Line: 12
3 // Compiler options: -warnaserror -warn:2
5 using System;
7 abstract class A {
8 public abstract event EventHandler MyEvent;
11 class B : A {
12 public event EventHandler MyEvent;