0

If my API function is

public ActionResult<IEnumerable<T>> GetAsync()

How do you denote the cref of the return in an XML Comment?

I tried

/// <returns><see cref="ActionResult{IEnumerable{T}}"/></returns>

but got the error:

XML comment on 'member' has syntactically incorrect cref attribute 'ActionResult{IEnumerable{T}}'

so I simplified everything with

/// <returns><see cref="ActionResult"/> of <see cref="IEnumerable{T}"/></returns>

But what's the correct way to create the cref for the return in my first attempt?

Robert Achmann
  • 1,986
  • 3
  • 40
  • 66

0 Answers0