SA1620: The typeparam tags in the documentation header must match the generic types for the interface.

May 6, 2010 at 12:48 PM
Edited May 6, 2010 at 12:50 PM

I just installed the latest 4.4 release which seems to have cleared up the exception where the out tag on a generic parameter was causing style cop to fail. However, it has introduced the following style error and I'm not sure how to specify the documentation to get around it. It looks like the out tag is tripping up this rule when it should not be. Any help would be greatly appreciated. Thanks.

    /// <summary>
    /// Interface for navigation links with in the system; necessary to allow for covariance on the generic parameter so that we can have a list of generic links
    /// that specify their more specific view model type.
    /// </summary>
    /// <typeparam name="T">View model that the link refers to.</typeparam>
    public interface ILink<out T> where T : IViewModelBase



May 7, 2010 at 4:41 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
May 7, 2010 at 4:42 AM

Thanks Mark. You get the award for finding the first bug!