This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 39444 - Action ReflectedType differs from Delegate ReflectedType for virutal methods
Summary: Action ReflectedType differs from Delegate ReflectedType for virutal methods
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Reflection (show other bugs)
Version: 4.2.0 (C6)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2016-03-08 12:18 UTC by mholenko
Modified: 2017-02-09 00:04 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Example (588 bytes, text/x-csharp)
2016-03-08 12:18 UTC, mholenko
Details

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!

Note You need to log in before you can comment on or make changes to this bug.