Bug 39444

Summary: Action ReflectedType differs from Delegate ReflectedType for virutal methods
Product: [Mono] Runtime Reporter: mholenko
Component: ReflectionAssignee: Zoltan Varga <vargaz>
Status: RESOLVED FIXED    
Severity: normal CC: ludovic, mono-bugs+runtime
Priority: ---    
Version: 4.2.0 (C6)   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: Example

Description mholenko 2016-03-08 12:18:42 UTC
Created attachment 15306 [details]
Example

This bug is related to #33879.

Compile and run the attached example.

Output on Mono master/1508297:
==============================

False
False
test35.DerivedClass
test35.BaseClass

Output on .NET:
===============

True
True
test35.BaseClass
test35.BaseClass


It seems that ReflectedType property has wrong value.
Comment 1 Ludovic Henry 2016-03-08 17:58:35 UTC
There is in fact a difference between Mono and .NET behaviour.

Thank you very much,
Ludovic
Comment 2 Ludovic Henry 2017-02-08 20:14:25 UTC
Zoltan, would you mind taking a look at that? Thank you
Comment 3 Ludovic Henry 2017-02-09 00:04:55 UTC
This is fixed with https://github.com/mono/mono/pull/4353. Thank you Zoltan!