- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 810
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
Can't set up "private protected" properties #1170
Comments
Like you said, Outside the assembly where such members are declared, they're essentially the same as |
@stakx I will have to disagree with you. If I have a How is this any different for Moq? If I've got the So really, |
Ah yes, I believe you're correct. And, come to think of it, I suspect the reason why this currently doesn't work is a different one: support for intercepting |
Thanks @stakx . Can you provide any idea of when DynamicProxy v5 will be released? Seems like there's hasn't been much activity there since March, and there aren't any open issues in the 5.0.0 milestone. |
I cannot say. You best watch this or their repository's releases; I can assure you there'll be a Moq release very soon after DP v5 is published. |
I can set up protected properties, I can set up internal properties, and I can set up protected internal properties. However, I cannot set up properties which are the strict intersection of protected and internal (in C# called "private protected"). As a reminder, "protected internal" is the union of protected and internal.
Since protected and internal both work, I see no reason why "private protected" shouldn't work as well.
Test code:
The text was updated successfully, but these errors were encountered: