Skip to content

Commit af96609

Browse files
svickmairaw
authored andcommitted
Small improvements for two-keyword modifiers in VB (dotnet#8536)
1 parent 9027ffd commit af96609

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

docs/toc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,9 @@
627627
#### [ParamArray](visual-basic/language-reference/modifiers/paramarray.md)
628628
#### [Partial](visual-basic/language-reference/modifiers/partial.md)
629629
#### [Private](visual-basic/language-reference/modifiers/private.md)
630+
#### [Private Protected](visual-basic/language-reference/modifiers/private-protected.md)
630631
#### [Protected](visual-basic/language-reference/modifiers/protected.md)
632+
#### [Protected Friend](visual-basic/language-reference/modifiers/protected-friend.md)
631633
#### [Public](visual-basic/language-reference/modifiers/public.md)
632634
#### [ReadOnly](visual-basic/language-reference/modifiers/readonly.md)
633635
#### [Shadows](visual-basic/language-reference/modifiers/shadows.md)

docs/visual-basic/language-reference/modifiers/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ The topics in this section document Visual Basic run-time modifiers.
5757

5858
[Private](../../../visual-basic/language-reference/modifiers/private.md)
5959

60+
[Private Protected](../../../visual-basic/language-reference/modifiers/private-protected.md)
61+
6062
[Protected](../../../visual-basic/language-reference/modifiers/protected.md)
63+
64+
[Protected Friend](../../../visual-basic/language-reference/modifiers/protected-friend.md)
6165

6266
[Public](../../../visual-basic/language-reference/modifiers/public.md)
6367

docs/visual-basic/programming-guide/language-features/declared-elements/access-levels.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Friend stringForThisProject As String
4646
You can use `Friend` only at module, interface, or namespace level. This means you can declare a friend element at the level of a source file or namespace, or inside an interface, module, class, or structure, but not in a procedure.
4747

4848
## Protected Friend
49-
The `Protected` and `Friend` keywords together in the declaration statement specify that the element can be accessed either from derived classes or from within the same assembly, or both. The following code shows a sample `Protected Friend` declaration.
49+
The [Protected Friend](../../../language-reference/modifiers/protected-friend.md) keyword combination in the declaration statement specifies that the element can be accessed either from derived classes or from within the same assembly, or both. The following code shows a sample `Protected Friend` declaration.
5050

5151
```vb
5252
Protected Friend stringForProjectAndHeirs As String
@@ -67,7 +67,7 @@ Private numberForMeOnly As Integer
6767

6868
## Private Protected
6969

70-
The [Private Protected](../../../language-reference/modifiers/private-protected.md) keyword in the declaration statement specifies that the element can be accessed only from within the same class, as well as from derived classes found in the same assembly as the containing class. The `Private Protected` access modifier is supported starting with Visual Basic 15.5.
70+
The [Private Protected](../../../language-reference/modifiers/private-protected.md) keyword combination in the declaration statement specifies that the element can be accessed only from within the same class, as well as from derived classes found in the same assembly as the containing class. The `Private Protected` access modifier is supported starting with Visual Basic 15.5.
7171

7272
The following example shows a `Private Protected` declaration:
7373

0 commit comments

Comments
 (0)