简体   繁体   中英

Watch Icons and Items in Visual Studio 2015

When I hover over a JObject variable in my C# code, I see a watch window pop up. When I expand that, I see the following image:

在此处输入图片说明

Questions

  1. What does the blue symbol/icon next to ChildrenTokens signify?

  2. Where is a comprehensive list of such symbols/icons?

  3. We all see ChildrenTokens listed in the watch window. However, when I am in code and try to access the ChildrenTokens property, intellisense doesn't show it. Why?

Thank you.

As you can see from JObject Documentation , ChildrenTokens is a protected override property . The icons with the wrench displays Properties; The blue icon (possibly a lock) is indicating that the property is protected. This would explain why you cannot access it via Intellisense.

You can find a list of the icons and overlays here for VS2015 here: https://msdn.microsoft.com/en-us/library/y47ychfe(v=vs.140)

Note that the icons vary depending on where you are viewing them.

The icon with the wrench signifies that it's a property .

The icon that shows a blue brick signifies the variable or whatever that is, is protected .

The pink cube icon shows it is some sort of subroutine or function or a method .

And the icon with that yellow thing shows that it is some sort of class !

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