Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Does not get property of base class. #4

Closed
ms007 opened this issue Apr 28, 2017 · 1 comment
Closed

Does not get property of base class. #4

ms007 opened this issue Apr 28, 2017 · 1 comment

Comments

@ms007
Copy link

ms007 commented Apr 28, 2017

if the current class has an abstract base class, the property does not get resolved:

File: Property.cs
Line of Code: PropertyInfo p = target.GetType().GetTypeInfo().GetDeclaredProperty(property);

It will get resolved with
PropertyInfo p = target.GetType().GetTypeInfo().GetProperty(property);

@Domysee
Copy link
Owner

Domysee commented Apr 29, 2017

Thank you for the report.
I have fixed it with target.GetType().GetRuntimeProperty(property);, as GetProperty seems to not be available on TypeInfo in netstandard1.0.
The fix will be included in version 2.0.3.

@Domysee Domysee closed this as completed Apr 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants