Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: <note> documentation element #1767

Open
sharwell opened this issue Aug 2, 2018 · 2 comments
Open

Proposal: <note> documentation element #1767

sharwell opened this issue Aug 2, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@sharwell
Copy link
Member

sharwell commented Aug 2, 2018

I propose updating the C# language specification to define a <note> block-level element in the context of XML documentation comments. The <note> element has a type attribute, which is allowed to be any identifier but the following note types are predefined:

  • note: A general note. This is the default if the type attribute is omitted.
  • implement: Note to implementers
  • caller: Note to callers
  • inherit: Note to inheritors
  • important: An important note
  • security: A security note

🔗 note (Sandcastle XML Comments Guide)

@sharwell
Copy link
Member Author

sharwell commented Aug 2, 2018

/cc @EWSoftware

@SilentSin
Copy link

I like it. In the absence of any stricter enforcement, it would be useful to tell a child class whether a method override should call the base or not without any callers caring about that aspect when they read the comment.

Should override be separate from inherit? I can't see any ambiguity, but it seems like it might be appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants