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

System.InvalidCastException when trying to run GetCustomAttribute<T> on PropertyOrFieldInfo #1

Open
TheMinefighter opened this issue Jan 4, 2019 · 1 comment
Assignees
Milestone

Comments

@TheMinefighter
Copy link
Owner

A System.InvalidCastException occurs when trying to run GetCustomAttribute on a PropertyOrFieldInfo.

@TheMinefighter TheMinefighter self-assigned this Jan 4, 2019
@TheMinefighter TheMinefighter pinned this issue Jan 4, 2019
@TheMinefighter
Copy link
Owner Author

For the time being just use propertyOrFieldInfo.MemberInfo.GetCustomAttribute<T>, the issue itself seems to be caused by some discovery issues of the custom casts, but currently I don't have the time to investigate this any further, have to write an exam in half a week..

@TheMinefighter TheMinefighter added this to the 1.0.2 milestone Jan 5, 2019
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

No branches or pull requests

1 participant