How can we help you today? How can we help you today?

Reflector drops 'override' and 'abstract' from events

Consider the following classes:
public abstract class Class1
{
    public abstract event EventHandler evt;
}

public class Class2 : Class1
{
    public override event EventHandler evt;
}
Compile into a sigle assembly and load into Reflector. Note that 'abstract' and 'override' are missing from event statements (although they do appear on the add_ & remove_ methods).

The problem, for me at least, arises if Class1 and Class2 are contained within separate assemblies.

To reproduce, use Reflector to disassemble the assembly containing Class2. Export, open in VS, add reference to assembly containing Class1.

Note that 'override' is missing from event declaration, and compile fails with 2 errors: "Error 'Class2' does not implement inherited abstract member 'xxx'" for each of add and remove methods for event.

Is this a known bug?

Many thanks in advance,
Paul Vella.
paulvella
0

Comments

1 comment

  • Clive Tong
    Thanks for the report. I've added it to our bug tracking system.
    Clive Tong
    0

Add comment

Please sign in to leave a comment.