문제

What is the proper XML-comment syntax to refer to the SingleOrDefault extension method on the IEnumerable interface?

My latest attempt is:

<see cref="IEnumerable{T}.SingleOrDefault{T}()"/>

The warning is:

XML comment on 'yourMethod' has cref attribute 'IEnumerable.SingleOrDefault()' that could not be resolved

도움이 되었습니까?

해결책

You were close. The extension method belongs to the Enumerable class. Try:

<see cref="Enumerable.SingleOrDefault{TSource}(IEnumerable{TSource})"/>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top