简体   繁体   中英

VS2019 (16.8.1), C#, XML Comments, Intellisense not showing

I have a Xamarin Forms project (C#) that I am working on in VS2019 (16.8.1) and I have noticed that if I add XML comments to the properties of classes within the project they are not then showing up when I hover over that property in another class where it is used.

This never used to be the case; any ideas what may have changed that I have missed in order to restore this functionality?

Please ignore. Turns out that the comments I had added were invalid XML.

I was trying to show the meaning of some read-only helper properties by simply showing the code that was used to evaluate the result - this included ampersand characters...

Not working

/// <summary>
/// Property1 && Property2 && Property3 && Property4
/// </summary>
public Boolean IsTypeA
{
    get {
        return Property1 && Property2 && Property3 && Property4;
    }
}

Working

/// <summary>
/// Property1 &amp;&amp; Property2 &amp;&amp; Property3 &amp;&amp; Property4
/// </summary>
public Boolean IsTypeA
{
    get {
        return Property1 && Property2 && Property3 && Property4;
    }
}

M.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM