1

How do I correctly reference the overloaded method with generic parameter in c# documentation comment? What should I put into cref attribute? I want Visual Studio 2010 (and ReSharper) to resolve it correctly.

/// <summary>
/// <see cref="MethodName(IEnumerable<string>)"/>
/// </summary>
public class ClassName
{

    public void MethodName(IEnumerable<string> param)
    {
        // code 
    }

    public void MethodName(string param)
    {
        // code 
    }
}

I did not find answer in this article (even though i could have missed it). https://msdn.microsoft.com/en-us/library/fsbx0t7x.aspx

1 Answer 1

1

With CodingK0ala's link I finally were able to resolve it, even though I looked in the article before and did not find the answer then.

<see cref="MethodName(IEnumerable{string})"/>

Thanks.

EDIT: Actually I don't know what seemed so incomprehensible about it then. :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.