Skip to content

Unable to see Inherited Properties in Blazor projects #47658

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
The blazor project I am working on uses classes with inheritance. When in debug mode, when I hover over a derived class object to look at its properties, visual studio only shows the child properties, it does not show the properties it inherited from the base class. Despite them not being shown, the are in fact there. They can be read from and written to, just not seen in the debugger.

The blazor app is a web assembly client app, not a server. I created separate folders in the project for the Models and Data. The classes are stored in a single file. The content of the classes is irrelevant, the issue arises whether its complex or simple so if youre attempting to recreate, it should suffice to put a single int property in both the base and derived classes. The Data folder contains a service. Debugging the service is where the problem first showed up, but i then found it everywhere. for testing, the service has a single method that is called from the index page. It creates objects of the derived type and has a line with a breakpoint that allows you to view the objects. The index page has a button that calls the method from the service.

Following these steps I have managed to recreate the problem consistently when I create a new project from scratch.

! [debugger properties snapshot.png] (https://aka.ms/dc/image?name=B2991da78d84243b0a56691939b299bc5637472708862029586_debugger_properties_snapshot.png&tid=2991da78d84243b0a56691939b299bc5637472708862029586)


Original Comments

Feedback Bot on 1/26/2021, 06:08 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions