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
Prevent GetType and System.Reflection namespace under interop by default #994
Conversation
745a6fb
to
512d742
Compare
512d742
to
3ec5277
Compare
Fine with disabling it by default. What about having a bool in |
Yeah makes sense to consider separate reflection namespace restriction, but So I guess we could do something extra, maybe another filter to check for Reflection namespace before allowing wrapping, like the |
Didn't realize that GetType() was in System, so obvious. |
I have done following for Topaz: |
ok I found my own answer after throwing the question. |
I've added separate If there's need to prevent I didn't alter |
Co-authored-by: Sébastien Ros <sebastienros@gmail.com>
Seems that this trips people often enough that we shouldn't allow
GetType
by default. Created separate property to control so that overwritten member filter won't cause us trouble, GetType will always by filtered based on configuration.fixes #993