Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Doc comment errors with tuple method parameters

Aperta
#94 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
csharp
Ambito
devtools

Direzione di ricerca

Start by reproducing the issue with the two tuple-parameter examples and inspect the generated inheritdoc cref shown in the report. Trace how the source generator formats tuple parameters, then verify that the generated cref resolves in Visual Studio and no CS1584 or CS1658 warnings are produced.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Great Project! Love it!

i think there is some problem with tuple parameters within comments... any Doc Comments on that method are not rendered on the Interface method in Visual Studio.

Some Method

public List<string> Method((Class1, Class2) param) {}

is generated as:

/// <inheritdoc cref="Namespace.Method((Namespace.Class1, Namespace.Class2))" />
global::System.Collections.Generic.List<string> Method((global::Namespace.Class1, global::Namespace.Class2) param);

and i get no Intellisense after the cref inside the generated inheritdoc comment attribute, meaning it probably cant resolve that method reference.

And in another instance a named tuple parameter even throws a compiler warning CS1584

"XML comment has syntactically incorrect cref attribute 'Namespace.Method((System.DateTime? from, System.DateTime? to))'"

and within that tuple also the warning CS1658:

") expected. See also error CS1026."

List<string> Method((DateTime? from, DateTime? to) timespan) {}

generates:

/// <inheritdoc cref="Namespace.Method((System.DateTime? from, System.DateTime? to))" />
global::System.Collections.Generic.List<string> Method((global::System.DateTime? from, global::System.DateTime? to) timespan);

In that instance it also cant resolve the cref inside the generated inheritdoc comment attribute.

Unfortunately i cannot find a solution at this moment. Any Solution very appreciated!

Lingua principale
C#
Stelle
116
Fork
26
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codecentric/net_automatic_interface

Tutte le issue di codecentric/net_automatic_interface

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.