question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xml Doc dropdowns do not list inherited class members

See original GitHub issue

When trying to add things like a CREF or PARAMREF in an Xml Doc (C#), any members inherited from base classes are not displayed. The system does let you still add the item, but it is not resolved:

In the below, the class Tenant is derived from a class called ChangeTrackedEntity which defines the Id property (public, type Guid). But it is not listed in the displayed dropdown. image

On adding Id manually and trying to F12 (Navigate to Definition) into it, you get: image

Please move if this is not the right repo / system for this bug.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Nov 12, 2022

Ah. Thank you for your explanation.

0reactions
CyrusNajmabadicommented, Nov 11, 2022

If not, please point me to the documentation that says this is illegal.

https://github.com/dotnet/csharpstandard/blob/standard-v6/standard/documentation-comments.md#d314-see

The definition of the symbol you are referencing does not exist. There is no Tenant.Id symbol, so it fails.

There is nothing in (specially the 3rd link) that says you cannot have a ‘.’-access into a base class.

You’re misunderstanding the specification. Unless specifically legal, something is not legal. We don’t say “we didn’t remember to say thsi is not allowed, so you can do it”. We say “we only allow it if we explicitly stated it was allowed”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When a class is inherited from List<>, XmlSerializer doesn't ...
The trick is to have XmlElement name = "" above the List element. When this is serialized into xml, you will have: <ContainerObject>...
Read more >
Add a way to inherit documentation <inheritdoc /> #313
The compiler SHOULD report a warning if the inheritdoc element appears without a cref attribute, and no candidate for inheriting documentation ...
Read more >
Using the <inheritdoc /> Tag
Be aware that when <param> tags are inherited, the parameter's name in your class's member must match the base member's parameter name. If...
Read more >
XmlDocument Class (System.Xml)
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in a document.
Read more >
DropDownList Class (System.Web.UI.WebControls)
Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control. (Inherited from WebControl). AutoPostBack.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found