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

Enable replication of nested custom attribute types #639

Merged
merged 3 commits into from
Dec 28, 2022

Conversation

stakx
Copy link
Member

@stakx stakx commented Dec 12, 2022

Fixes #638.

TL;DR, this boils down to the following change:

 private static bool ShouldSkipAttributeReplication(Type attribute, bool ignoreInheritance)
 {
-    if (attribute.IsPublic == false)
+    if (attribute.IsPublic == false && attribute.IsNestedPublic == false)
 ...

@stakx stakx force-pushed the bug/nested-custom-attribute-types branch from 1e2f529 to a2e6bbe Compare December 28, 2022 12:08
@stakx stakx added this to the vNext milestone Dec 28, 2022
@stakx
Copy link
Member Author

stakx commented Dec 28, 2022

I am going to merge this without any further review, as it's a pretty straightforward change.

@stakx stakx merged commit 323c03f into castleproject:master Dec 28, 2022
@stakx stakx deleted the bug/nested-custom-attribute-types branch December 28, 2022 15:30
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.

Nested custom attribute types do not get replicated
1 participant