Skip to content

Commit aab6e5f

Browse files
authored
Merge pull request #5020 from kendrahavens/patch-2
Document intellisense accessibility modifiers
2 parents e6df40a + 552f7b3 commit aab6e5f

6 files changed

+14
-1
lines changed
621 Bytes
Loading
589 Bytes
Loading
Loading
803 Bytes
Loading
Loading

docs/ide/using-intellisense.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,19 @@ Complete Word completes the rest of a variable, command, or function name after
7474

7575
IntelliSense options are on by default. To turn them off, choose **Tools** > **Options** > **Text Editor** and deselect **Parameter information** or **Auto list members** if you do not want the List Members feature.
7676

77+
## IntelliSense icons
78+
The icons in IntelliSense can convey additional meaning with icon modifiers. These are stars, hearts, and locks layered on top of the object's icon that convey protected, internal, or private, respectively.
79+
80+
| Icon | Accessibility | Description |
81+
|------------|--------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
82+
| ![Public Icon Modifier](../ide/media/intellisensePublicNoModifier.png) | Public class | Access is not restricted. |
83+
| ![Protected Icon Modifier](../ide/media/intellisenseProtectedModifier.png) | Protected class | Access is limited to the containing class or types derived from the containing class. |
84+
| ![Protected Internal Icon Modifier](../ide/media/intellisenseProtectedInternalModifier.png) | Protected internal class | Access is limited to the current assembly or types derived from the containing class. |
85+
| ![Internal Icon Modifier](../ide/media/intellisenseInternalModifier.png) | Internal class | Access is limited to the current assembly. |
86+
|![Private Icon Modifier](../ide/media/intellisensePrivateModifier.png) | Private class | Access is limited to the containing class or types derived from the containing class within the current assembly. (Available since C# 7.2.) |
87+
88+
89+
7790
## Troubleshoot IntelliSense
7891

7992
The IntelliSense options may not work as you expect in certain cases.
@@ -96,4 +109,4 @@ MessageBox( hWnd, "String literal|")
96109
- [C# IntelliSense](../ide/visual-csharp-intellisense.md)
97110
- [JavaScript IntelliSense](../ide/javascript-intellisense.md)
98111
- [Write and refactor code (C++)](/cpp/ide/writing-and-refactoring-code-cpp)
99-
- [Supply XML code comments](reference/generate-xml-documentation-comments.md)
112+
- [Supply XML code comments](reference/generate-xml-documentation-comments.md)

0 commit comments

Comments
 (0)