Repository navigation
Closed
Labels
area-System.CollectionsdocumentationDocumentation bug or enhancement, does not impact product or test codehelp wanted[up-for-grabs] Good issue for external contributors
Milestone
Description
Area owners: @eiriktsarpalis @layomia
The APIs in the list below are missing some or all of their documentation. Please add the missing documentation directly in triple slash comments in source. We will make sure it gets ported to dotnet-api-docs after it's merged.
Make sure to follow the documentation guidelines defined in the dotnet-api-docs wiki:
https://github.com/dotnet/dotnet-api-docs/wiki
Also please add me as a PR reviewer.
Community contributions are welcome.
System.Collections
| DocId | Summary | Parameters | TypeParameters | ReturnValue |
|---|---|---|---|---|
| T:System.Collections.Immutable.ImmutableArray`1.Builder | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableArray`1.Enumerator | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableDictionary`2.Builder | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableDictionary`2.Enumerator | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableHashSet`1.Builder | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableHashSet`1.Enumerator | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableList`1.Builder | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableList`1.Enumerator | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableQueue`1.Enumerator | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableSortedDictionary`2.Builder | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableSortedDictionary`2.Enumerator | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableSortedSet`1.Builder | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableSortedSet`1.Enumerator | Present | NA | Missing | NA |
| T:System.Collections.Immutable.ImmutableStack`1.Enumerator | Present | NA | Missing | NA |
Metadata
Metadata
Assignees
Labels
area-System.CollectionsdocumentationDocumentation bug or enhancement, does not impact product or test codehelp wanted[up-for-grabs] Good issue for external contributors
Activity
danmoseley commentedon Oct 26, 2020
@carlossanlop is there an analyzer or warning setting that would give errors (so clearing out the errors would resolve this issue)?
Is there a preferred ordering of tags, eg., summary, typeparam, remarks?
carlossanlop commentedon Oct 26, 2020
@danmosemsft Yes, there is a way: https://docs.microsoft.com/en-us/dotnet/csharp/codedoc
But we don't want to enable it yet, it will cause a lot of noise if any public APIs do not have documentation in source, which is the case for a lot of them.
We will first have to port back everything from dotnet-api-docs to triple slash comments and then we will enable that rule. We are working on the plan for this, and we will work on it assembly by assembly. I'll let you know when we are ready to begin.
To answer your question, my suggestion is to simply add the missing documentation from the table. Once we run the DocsPortingTool, it will detect and port only the items that are missing in dotnet-api-docs. Items with existing documentation in that repo will not get their documentation overwritten.
Visual Studio will automatically add the required skeleton if the user types "///" on top of the API to document.
danmoseley commentedon Oct 26, 2020
I was just thinking for someone fixing an issue like this, where the source is nearly all documented, they may want to enable it locally so it guides them to the problems.
TheMaximum commentedon Feb 21, 2021
I was looking to see if I could add the missing typeparams into the code, but appear to have hit a wall.
The issues are the same for all types, I'm taking
ImmutableArray{T}as example here.The mentioned classes are split into multiple files with partial classes. In the case of
ImmutableArray{T}, the class summary is added inImmutableArray_1.Minimal.csand includes the requiredtypeparam:runtime/src/libraries/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableArray_1.Minimal.cs
Lines 14 to 37 in a350bc6
When it comes to the
BuilderandEnumeratorclasses, the documentation on Docs shows one type parameter (T). When checking inImmutableArray_1.Builder.cs, theBuilderclass doesn't have any type parameters. It implementsIList{T}andIReadOnlyList{T}, but those type parameters are passed via the type parameter ofImmutableArray{T}.runtime/src/libraries/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableArray_1.Builder.cs
Lines 9 to 18 in a350bc6
When I would add the
typeparamelement to the comment displayed above, I get aCS1711error (XML comment has a typeparam tag for 'T', but there is no type parameter by that name), which is logical - there isn't.When adding a comment (including
typeparam) to theImmutableArray{T}class inImmutableArray_1.Builder.cs, I get aCS1710error (XML comment has a duplicate typeparam tag for 'T'), which is also logical as thetypeparamis already present inImmutableArray_1.Minimal.cs.Could you indicate how the documentation gets this
typeparamfor theBuilder/Enumeratorclasses and what the appropriate action to take would be, @carlossanlop?eiriktsarpalis commentedon Aug 24, 2021
Superseded by #54869.