You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The public partial method in the public partial class requires XML comments in each partial method definition. The class itself requires the documentation only in one place.
Steps To Reproduce
Prerequisite: XML comments are enabled.
Define the public partial method without implementation inside a public partial class.
In another file: Define the same public partial class with the same public partial method, but now with implementation.
Add XML comment to only one file where the partial method is defined.
CS1591 will pop up on the other file, it does not matter in which file the XML comment was created.
Expected behavior
It would be enough to create only one XML comment on the partial method, the same as with the partial class.
Actual behavior
In order to dismiss CS1591, the partial method has to be documented everywhere or use suppresion.
Additional context
Example:
Without CS1591
Second file with CS1591 on partial method
The text was updated successfully, but these errors were encountered:
Analyzer
Diagnostic ID: CS1591:
Missing XML comment for publicly visible type or member
Analyzer source
Version: SDK 5.0.100
Describe the bug
The public partial method in the public partial class requires XML comments in each partial method definition. The class itself requires the documentation only in one place.
Steps To Reproduce
Prerequisite: XML comments are enabled.
Expected behavior
It would be enough to create only one XML comment on the partial method, the same as with the partial class.
Actual behavior
In order to dismiss CS1591, the partial method has to be documented everywhere or use suppresion.
Additional context
Example:
Without CS1591
Second file with CS1591 on partial method
The text was updated successfully, but these errors were encountered: