How to comment code using a generic class of a specific type

I am trying to correctly document my code.

I have a method that can throw a Fault exception for a specific type. When I look at the documentation for a method, it does not show a specific type of FaultException.

///<summary> /// Description of method ///</summary> /// <exception cref="FaultException{ValidationFault}">Description here</exception> OrganizationDto Update(UpdateOrganizationRequest organizationDto); 

The documentation shows: FaultException <TDetail> : Description here

I want it to show: FaultException <ValidationFault> : Description here

How can i achieve this?

+6
source share
1 answer

I am working on ReSharper version 8.2.2, and I see the exception documentation you wanted.

See screenshot:

Exception Description on ReSharper 8.2.2

What version are you working in? maybe this is a defect associated with this version?

+1
source

Source: https://habr.com/ru/post/983411/


All Articles