2

How can I write this in a proper way:

/// <summary>
/// Provides extension methods for <see cref="System.Collections.Generic.Dictionary"/> matrix.
/// </summary>
public static class DictonaryMatExtensions
{...}

System.Collections.Generic.Dictionary part is bothering me.

6
  • 1
    It is bothering you because..? Commented Jul 6, 2014 at 14:45
  • I want to build a documentation, and VS complaints that the System.Collections.Generic.Dictionary ca not be resolved. Commented Jul 6, 2014 at 14:56
  • It is not bothering you, but the compiler. Commented Jul 6, 2014 at 15:02
  • OK, what is the proper way to write System.Collections.Generic.Dictionary so the compiler does not complain ? Commented Jul 6, 2014 at 15:07
  • You are correct, this is a problem because for example with a class Foo<T> my compiler produces warning CS1574: XML comment on ... has cref attribute 'Foo' that could not be resolved. Is this same same warning # you get? Commented Jul 6, 2014 at 15:10

1 Answer 1

4

Try using { and } to represent the generic parameter(s)

/// ... <see cref="System.Collections.Generic.Dictionary{TKey, TValue}"/> matrix.
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.