Skip to content

Commit e7d6128

Browse files
committed
ShouldSkipAttributeReplication must also check .IsNestedPublic
1 parent 2eb8bd2 commit e7d6128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Castle.Core/DynamicProxy/Internal/AttributeUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public static IEnumerable<CustomAttributeInfo> GetNonInheritableAttributes(this
185185
/// </summary>
186186
private static bool ShouldSkipAttributeReplication(Type attribute, bool ignoreInheritance)
187187
{
188-
if (attribute.IsPublic == false)
188+
if (attribute.IsPublic == false && attribute.IsNestedPublic == false)
189189
{
190190
return true;
191191
}

0 commit comments

Comments
 (0)