Skip to content

Doc comment errors with tuple method parameters #94

Description

@mfich99

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

publicList<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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions