How do you add < (less than) or > (greater than) to a summary comment in visual studio? I am in Visual Studio 2008.
I have a generic method:
public bool IsMemberProtected<T>(Expression<Func<T, object>> expression)
Would love to have a summary tag of something like this
/// <summary> /// Determines whether a member is protected. /// /// Usage: IsMemberProtected<ExampleType>(x => x.Member) /// </summary>
But when I do that, the tooltip for the property no longer works when a developer hovers over the method in code to view the summary tag.
Thoughts?
You can use the entities
<and>to give<and>respectively.Notice that here you also use
<and>to write a generic type. In this case there is a convention that if you use acreftag then you can useGenericType{T}instead of the uglierGenericType<T>. See here for more information.Also from that page there is another suggestion if you have to write a lot of
<and>symbols that you put the text in a CDATA section: