Skip to content

Enable replication of nested custom attribute types - #639

Merged
stakx merged 3 commits into
castleproject:masterfrom
stakx:bug/nested-custom-attribute-types
Dec 28, 2022
Merged

stakx merged 3 commits into
castleproject:masterfrom
stakx:bug/nested-custom-attribute-types

Conversation

@stakx

@stakx stakx commented Dec 12, 2022 •

Copy link
Copy Markdown
Member

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

stakx commented Dec 28, 2022

Copy link
Copy Markdown
Member Author

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