Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YamlIgnore attributes are inherited #481

Merged
merged 2 commits into from Apr 21, 2020
Merged

Conversation

pensono
Copy link
Contributor

@pensono pensono commented Apr 18, 2020

The source of this bug is the fact that IMemberInfo.GetCustomAttributes actually ignores its "inherit" parameter.

https://docs.microsoft.com/en-us/dotnet/api/system.reflection.memberinfo.getcustomattributes

This addresses #271

The source of this bug is the fact that IMemberInfo.GetCustomAttributes
actually ignores it's "inherit" parameter.

https://docs.microsoft.com/en-us/dotnet/api/system.reflection.memberinfo.getcustomattributes

This addresses aaubry#271
@aaubry
Copy link
Owner

aaubry commented Apr 19, 2020

This does not build on netstandard1.3 because Attribute.GetCustomAttributes is not available. Do you know of an alternative for that platform ?

@aaubry aaubry added the feedback-needed More feedback is required label Apr 19, 2020
@pensono
Copy link
Contributor Author

pensono commented Apr 19, 2020

I've implemented a workaround for netstandard1.3.

If this workaround can't be used there's also the possibility of adding netstandard2.0 as a target for netstandard1.3 builds. There is some documentation that suggests this: https://github.com/dotnet/standard/blob/master/docs/versions.md#how-do-i-know-which-net-standard-version-i-should-target

@aaubry
Copy link
Owner

aaubry commented Apr 21, 2020

This looks good. I'd rather avoid changing the targets at this point because that could break other people's code. I have no way of knowing which target platforms are actually used.
Thanks for the fix!

@aaubry aaubry merged commit 6194e9d into aaubry:master Apr 21, 2020
@aaubry aaubry removed the feedback-needed More feedback is required label Apr 21, 2020
aaubry added a commit that referenced this pull request Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants