How to add <or> to a summary tag in Visual Studio?

How do you add <(less) or> (more) to the summary comment in visual studio? I am in Visual Studio 2008.

I have a general method:

public bool IsMemberProtected<T>(Expression<Func<T, object>> expression)

I would like to have a final tag of something like this

    /// <summary>
    /// Determines whether a member is protected.
    /// 
    /// Usage: IsMemberProtected<ExampleType>(x => x.Member)
    /// </summary>

But when I do this, the tooltip for the property no longer works when the developer hovers over the method in the code to view the final tag.

Thoughts?

+5
source share
2 answers

You can use entities &lt;and &gt;to give <and >accordingly.

, < > . , cref, GenericType{T} GenericType&lt;T&gt;. . .

, < >, CDATA:

/// <summary>
/// This a simple collection which implements <see cref="IEnumerable{T}" />
/// </summary>
/// <example>
/// <![CDATA[
/// SimpleList<int> intList = new SimpleList<int>();
/// ]]>
/// </example>
+10

, .

, "", Ex.

public void Function_Name()

/// <summary>
/// Give the details here
/// </summary>
/// <param name=""></param>
/// <returns> you can tel what it returns </returns>
public void Function_Name()

( ).

0

All Articles