Skip to content

Fix Public Inner Class References #32

@bruce-dunwiddie

Description

@bruce-dunwiddie

When referencing a variable in an expression whose type is a public inner class the current code is using Type.IsNotPublic instead of !Type.IsPublic, and Type.IsNotPublic also includes public inner classes.

https://docs.microsoft.com/en-us/dotnet/api/system.type.isnotpublic?view=net-5.0

true if the Type is not declared public and is not a nested type; otherwise, false.

So wrapper accessor class code is triggered incorrectly, but not executed successfully because calling code uses Type.IsPublic.

if (variable.Type.IsNotPublic &&

if (variable.Type.IsPublic)

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions